CODE_ERROR
There is an error in the cadence code of this transaction.
[Error Code: 1101] cadence runtime error Execution failed: error: mismatched types --> 09b8c32ce889db36.BlueBeltNFTs:127:20 | 127 | return &self.ownedNFTs[id] as &NonFungibleToken.NFT | ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?` error: mismatched types --> 09b8c32ce889db36.BlueBeltNFTs:137:27 | 137 | let ref = &self.ownedNFTs[id] as auth &NonFungibleToken.NFT | ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?` error: cannot find type in this scope: `BlueBeltNFTs` --> b9ed30a32882fe01bafa3ec9e35d54eb171a5d530eb838ea692aaf8b37643de2:6:32 | 6 | if signer.borrow<&BlueBeltNFTs.Collection>(from: BlueBeltNFTs.CollectionStoragePath) == nil { | ^^^^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `BlueBeltNFTs` --> b9ed30a32882fe01bafa3ec9e35d54eb171a5d530eb838ea692aaf8b37643de2:6:63 | 6 | if signer.borrow<&BlueBeltNFTs.Collection>(from: BlueBeltNFTs.CollectionStoragePath) == nil { | ^^^^^^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> b9ed30a32882fe01bafa3ec9e35d54eb171a5d530eb838ea692aaf8b37643de2:6:17 | 6 | if signer.borrow<&BlueBeltNFTs.Collection>(from: BlueBeltNFTs.CollectionStoragePath) == nil { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find variable in this scope: `BlueBeltNFTs` --> b9ed30a32882fe01bafa3ec9e35d54eb171a5d530eb838ea692aaf8b37643de2:9:36 | 9 | let collection <- BlueBeltNFTs.createEmptyCollection() | ^^^^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `BlueBeltNFTs` --> b9ed30a32882fe01bafa3ec9e35d54eb171a5d530eb838ea692aaf8b37643de2:12:48 | 12 | signer.save(<-collection, to: BlueBeltNFTs.CollectionStoragePath) | ^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `BlueBeltNFTs` --> b9ed30a32882fe01bafa3ec9e35d54eb171a5d530eb838ea692aaf8b37643de2:15:31 | 15 | signer.link<&BlueBeltNFTs.Collection{NonFungibleToken.CollectionPublic, BlueBeltNFTs.BlueBeltNFTsCollectionPublic}>(BlueBeltNFTs.CollectionPublicPath, target: BlueBeltNFTs.CollectionStoragePath) | ^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `BlueBeltNFTs` --> b9ed30a32882fe01bafa3ec9e35d54eb171a5d530eb838ea692aaf8b37643de2:15:90 | 15 | signer.link<&BlueBeltNFTs.Collection{NonFungibleToken.CollectionPublic, BlueBeltNFTs.BlueBeltNFTsCollectionPublic}>(BlueBeltNFTs.CollectionPublicPath, target: BlueBeltNFTs.CollectionStoragePath) | ^^^^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `BlueBeltNFTs` --> b9ed30a32882fe01bafa3ec9e35d54eb171a5d530eb838ea692aaf8b37643de2:15:134 | 15 | signer.link<&BlueBeltNFTs.Collection{NonFungibleToken.CollectionPublic, BlueBeltNFTs.BlueBeltNFTsCollectionPublic}>(BlueBeltNFTs.CollectionPublicPath, target: BlueBeltNFTs.CollectionStoragePath) | ^^^^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `BlueBeltNFTs` --> b9ed30a32882fe01bafa3ec9e35d54eb171a5d530eb838ea692aaf8b37643de2:15:177 | 15 | signer.link<&BlueBeltNFTs.Collection{NonFungibleToken.CollectionPublic, BlueBeltNFTs.BlueBeltNFTsCollectionPublic}>(BlueBeltNFTs.CollectionPublicPath, target: BlueBeltNFTs.CollectionStoragePath) | ^^^^^^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> b9ed30a32882fe01bafa3ec9e35d54eb171a5d530eb838ea692aaf8b37643de2:15:18 | 15 | signer.link<&BlueBeltNFTs.Collection{NonFungibleToken.CollectionPublic, BlueBeltNFTs.BlueBeltNFTsCollectionPublic}>(BlueBeltNFTs.CollectionPublicPath, target: BlueBeltNFTs.CollectionStoragePath) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^Loading...