Whoops! 😨 Something unexpected happened...
[Error Code: 1101] cadence runtime error Execution failed:
error: mismatched types
--> 5634aefcb76e7d8c.MusicBlock:133:23
|
133 | let ref = &self.ownedNFTs[id] as auth &NonFungibleToken.NFT
| ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?`
error: mismatched types
--> 5634aefcb76e7d8c.MusicBlock:147:20
|
147 | return &self.ownedNFTs[id] as &NonFungibleToken.NFT
| ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?`
error: cannot find type in this scope: `MusicBlock`
--> 9c7c2a5005d5b8f8f427823ae52e60e5bb4af5ebd09d54537f813132dd2cf808:16:26
|
16 | if signer.borrow<&MusicBlock.Collection>(from: MusicBlock.CollectionStoragePath) == nil {
| ^^^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `MusicBlock`
--> 9c7c2a5005d5b8f8f427823ae52e60e5bb4af5ebd09d54537f813132dd2cf808:16:55
|
16 | if signer.borrow<&MusicBlock.Collection>(from: MusicBlock.CollectionStoragePath) == nil {
| ^^^^^^^^^^ not found in this scope
error: cannot infer type parameter: `T`
--> 9c7c2a5005d5b8f8f427823ae52e60e5bb4af5ebd09d54537f813132dd2cf808:16:11
|
16 | if signer.borrow<&MusicBlock.Collection>(from: MusicBlock.CollectionStoragePath) == nil {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: cannot find variable in this scope: `MusicBlock`
--> 9c7c2a5005d5b8f8f427823ae52e60e5bb4af5ebd09d54537f813132dd2cf808:17:27
|
17 | signer.save(<- MusicBlock.createEmptyCollection(), to: MusicBlock.CollectionStoragePath)
| ^^^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `MusicBlock`
--> 9c7c2a5005d5b8f8f427823ae52e60e5bb4af5ebd09d54537f813132dd2cf808:17:67
|
17 | signer.save(<- MusicBlock.createEmptyCollection(), to: MusicBlock.CollectionStoragePath)
| ^^^^^^^^^^ not found in this scope
error: cannot find type in this scope: `MusicBlock`
--> 9c7c2a5005d5b8f8f427823ae52e60e5bb4af5ebd09d54537f813132dd2cf808:18:61
|
18 | signer.link<&{NonFungibleToken.CollectionPublic, MusicBlock.MusicBlockCollectionPublic}>(
| ^^^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `MusicBlock`
--> 9c7c2a5005d5b8f8f427823ae52e60e5bb4af5ebd09d54537f813132dd2cf808:19:7
|
19 | MusicBlock.CollectionPublicPath,
| ^^^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `MusicBlock`
--> 9c7c2a5005d5b8f8f427823ae52e60e5bb4af5ebd09d54537f813132dd2cf808:20:15
|
20 | target: MusicBlock.CollectionStoragePath
| ^^^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `MusicBlock`
--> 9c7c2a5005d5b8f8f427823ae52e60e5bb4af5ebd09d54537f813132dd2cf808:39:79
|
39 | self.nftCollection = signer.borrow<&{NonFungibleToken.Receiver}>(from: MusicBlock.CollectionStoragePath)
| ^^^^^^^^^^ not found in this scope