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`
--> 34de6303d2dd354bd7975a95c23ba086c2b16cb7712011985d07ef199877bc32:9:24
|
9 | let nftCollection: &MusicBlock.Collection{NonFungibleToken.Receiver}
| ^^^^^^^^^^ not found in this scope
error: cannot find type in this scope: `MusicBlock`
--> 34de6303d2dd354bd7975a95c23ba086c2b16cb7712011985d07ef199877bc32:14:26
|
14 | if signer.borrow<&MusicBlock.Collection>(from: MusicBlock.CollectionStoragePath) == nil {
| ^^^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `MusicBlock`
--> 34de6303d2dd354bd7975a95c23ba086c2b16cb7712011985d07ef199877bc32:14:55
|
14 | if signer.borrow<&MusicBlock.Collection>(from: MusicBlock.CollectionStoragePath) == nil {
| ^^^^^^^^^^ not found in this scope
error: cannot infer type parameter: `T`
--> 34de6303d2dd354bd7975a95c23ba086c2b16cb7712011985d07ef199877bc32:14:11
|
14 | if signer.borrow<&MusicBlock.Collection>(from: MusicBlock.CollectionStoragePath) == nil {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: cannot find variable in this scope: `MusicBlock`
--> 34de6303d2dd354bd7975a95c23ba086c2b16cb7712011985d07ef199877bc32:15:26
|
15 | signer.save(<-MusicBlock.createEmptyCollection(), to: MusicBlock.CollectionStoragePath)
| ^^^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `MusicBlock`
--> 34de6303d2dd354bd7975a95c23ba086c2b16cb7712011985d07ef199877bc32:15:66
|
15 | signer.save(<-MusicBlock.createEmptyCollection(), to: MusicBlock.CollectionStoragePath)
| ^^^^^^^^^^ not found in this scope
error: cannot find type in this scope: `MusicBlock`
--> 34de6303d2dd354bd7975a95c23ba086c2b16cb7712011985d07ef199877bc32:16:25
|
16 | signer.link<&MusicBlock.Collection{NonFungibleToken.CollectionPublic, MusicBlock.MusicBlockCollectionPublic}>(MusicBlock.CollectionPublicPath, target: MusicBlock.CollectionStoragePath)
| ^^^^^^^^^^ not found in this scope
error: cannot find type in this scope: `MusicBlock`
--> 34de6303d2dd354bd7975a95c23ba086c2b16cb7712011985d07ef199877bc32:16:82
|
16 | signer.link<&MusicBlock.Collection{NonFungibleToken.CollectionPublic, MusicBlock.MusicBlockCollectionPublic}>(MusicBlock.CollectionPublicPath, target: MusicBlock.CollectionStoragePath)
| ^^^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `MusicBlock`
--> 34de6303d2dd354bd7975a95c23ba086c2b16cb7712011985d07ef199877bc32:16:122
|
16 | signer.link<&MusicBlock.Collection{NonFungibleToken.CollectionPublic, MusicBlock.MusicBlockCollectionPublic}>(MusicBlock.CollectionPublicPath, target: MusicBlock.CollectionStoragePath)
| ^^^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `MusicBlock`
--> 34de6303d2dd354bd7975a95c23ba086c2b16cb7712011985d07ef199877bc32:16:163
|
16 | signer.link<&MusicBlock.Collection{NonFungibleToken.CollectionPublic, MusicBlock.MusicBlockCollectionPublic}>(MusicBlock.CollectionPublicPath, target: MusicBlock.CollectionStoragePath)
| ^^^^^^^^^^ not found in this scope
error: cannot infer type parameter: `T`
--> 34de6303d2dd354bd7975a95c23ba086c2b16cb7712011985d07ef199877bc32:16:12
|
16 | signer.link<&MusicBlock.Collection{NonFungibleToken.CollectionPublic, MusicBlock.MusicBlockCollectionPublic}>(MusicBlock.CollectionPublicPath, target: MusicBlock.CollectionStoragePath)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: cannot find type in this scope: `MusicBlock`
--> 34de6303d2dd354bd7975a95c23ba086c2b16cb7712011985d07ef199877bc32:34:44
|
34 | self.nftCollection = signer.borrow<&MusicBlock.Collection{NonFungibleToken.Receiver}>(from: MusicBlock.CollectionStoragePath)
| ^^^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `MusicBlock`
--> 34de6303d2dd354bd7975a95c23ba086c2b16cb7712011985d07ef199877bc32:34:100
|
34 | self.nftCollection = signer.borrow<&MusicBlock.Collection{NonFungibleToken.Receiver}>(from: MusicBlock.CollectionStoragePath)
| ^^^^^^^^^^ not found in this scope
error: cannot infer type parameter: `T`
--> 34de6303d2dd354bd7975a95c23ba086c2b16cb7712011985d07ef199877bc32:34:29
|
34 | self.nftCollection = signer.borrow<&MusicBlock.Collection{NonFungibleToken.Receiver}>(from: MusicBlock.CollectionStoragePath)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^