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