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