Whoops! 😨 Something unexpected happened...
[Error Code: 1101] cadence runtime error Execution failed:
error: mismatched types
--> 85b8bbf926dcddfa.NowggNFT:162:20
|
162 | return &self.ownedNFTs[id] as &NonFungibleToken.NFT
| ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?`
error: mismatched types
--> 85b8bbf926dcddfa.NowggNFT:171:27
|
171 | let ref = &self.ownedNFTs[id] as auth &NonFungibleToken.NFT
| ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?`
error: cannot find type in this scope: `NowggNFT`
--> 395761b6929494d1dcd0accf7b790bca2d597efd03e105d6a3a4f5c27ec6b014:11:17
|
11 | let minter: &NowggNFT.NFTMinter
| ^^^^^^^^ not found in this scope
error: cannot find type in this scope: `NowggNFT`
--> 395761b6929494d1dcd0accf7b790bca2d597efd03e105d6a3a4f5c27ec6b014:16:37
|
16 | self.minter = signer.borrow<&NowggNFT.NFTMinter>(from: NowggNFT.MinterStoragePath)
| ^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `NowggNFT`
--> 395761b6929494d1dcd0accf7b790bca2d597efd03e105d6a3a4f5c27ec6b014:16:63
|
16 | self.minter = signer.borrow<&NowggNFT.NFTMinter>(from: NowggNFT.MinterStoragePath)
| ^^^^^^^^ not found in this scope
error: cannot infer type parameter: `T`
--> 395761b6929494d1dcd0accf7b790bca2d597efd03e105d6a3a4f5c27ec6b014:16:22
|
16 | self.minter = signer.borrow<&NowggNFT.NFTMinter>(from: NowggNFT.MinterStoragePath)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^