-
Notifications
You must be signed in to change notification settings - Fork 76
Added skyharbor changes #107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Hi, Added MyNFT smart contract changes for alchemy api. Please review and update the changes. Thanks
src/cadence/mainnet/getNFTs.cdc
Outdated
| .borrow<&{MyNFT.CollectionPublic}>() | ||
| if col == nil { return nil } | ||
|
|
||
| let nft = col!.borrowReward(id: id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seeing this error on running the test:
258 | case "MyNFT": d = getSkyhorborNFT(owner: owner, id: id)
| ^^^^^^^^^^^^^^^ not found in this scope
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Applied the fix and updated files on my repo.
Please review it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still seeing errors, can you please run tests before submitting the PR:
--> d247108fdcd05636060b63a02b5c1758fbdbaee8f5ef948c1cfa34850c7f7233:3854:14
|
3854 | let nft = col!.borrowEntireNFT(id: id)
| ^^^^
error: value of type &MyNFT.NFT has no member name
--> d247108fdcd05636060b63a02b5c1758fbdbaee8f5ef948c1cfa34850c7f7233:3861:20
|
3861 | title: nft!.name,
| ^^^^ unknown member
error: value of type &MyNFT.NFT has no member editionNumber
--> d247108fdcd05636060b63a02b5c1758fbdbaee8f5ef948c1cfa34850c7f7233:3867:23
|
3867 | "editionNumber": nft.editionNumber,
| ^^^^^^^^^^^^^ unknown member
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
I have fixed the name attribute issue getting in getNfts.cdc file.
But while running below test case command I'm getting error like ==> Command Error: error parsing script arguments: invalid character 't' looking for beginning of object key string
Am I passing something wrong in these command. I have tried with below 2 commands Please suggest on this. Thanks
MyNFT command:
flow scripts execute getNFTs.cdc --args-json '[{ "type": "Address", "value": "0x5affd8c030ae5761" }, { "type": "Dictionary", "value": [{ "key": { "type": "String", "value": "MyNFT" }, "value": { "type": "Array", "value": [{ "type": "UInt64", "value": "128" }] } }] }]' --network mainnet
Sample command provided in the repo note:
flow scripts execute getNFTs.cdc --args-json '[{ "type": "Address", "value": "0x9eef2e4511390ce4" }, { "type": "Dictionary", "value": [{ "key": { "type": "String", "value": "Gaia" }, "value": { "type": "Array", "value": [{ "type": "UInt64", "value": "1129" }] } }] }]' --network mainnet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
Please review it once and suggest.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, Please check it once on the test case execution issue and suggest. So we can proceed further and complete it. Thanks in advance.
|
Seeing this error on running the test 258 | case "MyNFT": d = getSkyhorborNFT(owner: owner, id: id) |
|
Applied the fix and updated files on my repo used in the pull request. Please review it. |
Merged skyharbor changes with new updated code present on alchemy repo
|
Hi, We have updated changes on latest code repo. Please review it and update. Thanks |
Added support to metadataviews in our new smart contract

Hi, Added MyNFT smart contract changes for alchemy api. Please review and update the changes. Thanks