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` --> c901528bcc3bb1fcd7234fcaf03bc3013d548f2ebc96c3e2645f41e2a9ca42da:4:46 | 4 | let collection = acct.borrow<&MyNFT.Collection>(from: /storage/MyNFTCollection) | ^^^^^ not found in this scope error: cannot infer type parameter: `T` --> c901528bcc3bb1fcd7234fcaf03bc3013d548f2ebc96c3e2645f41e2a9ca42da:4:33 | 4 | let collection = acct.borrow<&MyNFT.Collection>(from: /storage/MyNFTCollection) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find variable in this scope: `MyNFT` --> c901528bcc3bb1fcd7234fcaf03bc3013d548f2ebc96c3e2645f41e2a9ca42da:6:27 | 6 | let nft <- MyNFT.createToken(ipfsHash: ipfsHash, metadata: {"name": name}) | ^^^^^ not found in this scopeArguments:
ipfsHash:
Qme9BnN6MVCSdyaTdnfiJPbimEzXYe9KxumBSsTRvSMn73
name:
video NFT try
Loading...