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