CODE_ERROR
There is an error in the cadence code of this transaction.
[Error Code: 1101] cadence runtime error Execution failed: error: mismatched types --> 33f44e504a396ba7.MyNFT:50:14 | 50 | return &self.ownedNFTs[id] as &NonFungibleToken.NFT | ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?` error: mismatched types --> 33f44e504a396ba7.MyNFT:54:23 | 54 | let reference = &self.ownedNFTs[id] as auth &NonFungibleToken.NFT | ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?` error: cannot find type in this scope: `MyNFT` --> e8c1fc3ed5212db618278552ba0a75e00429e4edb604e7b31ae55e66cfbac3f1:4:46 | 4 | let collection = acct.borrow<&MyNFT.Collection>(from: /storage/MyNFTCollection) | ^^^^^ not found in this scope error: cannot infer type parameter: `T` --> e8c1fc3ed5212db618278552ba0a75e00429e4edb604e7b31ae55e66cfbac3f1:4:33 | 4 | let collection = acct.borrow<&MyNFT.Collection>(from: /storage/MyNFTCollection) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find variable in this scope: `MyNFT` --> e8c1fc3ed5212db618278552ba0a75e00429e4edb604e7b31ae55e66cfbac3f1:6:27 | 6 | let nft <- MyNFT.createToken(ipfsHash: ipfsHash, metadata: {"name": name}) | ^^^^^ not found in this scopeArguments:
ipfsHash:
QmcSD8RVKSsqdp3dkUrspyo7SkVCi1Yu4Nm6PiNmkMkKTB
name:
video nft for performance check
Loading...