Flow price: --
3362aa3b2c3cec5a86de65662a067cc070ae9f9ec0e18b4687f6db5c43a235c0

Transaction

Hash: 3362aa3b2c3cec5a86de65662a067cc070ae9f9ec0e18b4687f6db5c43a235c0
error
Error

Whoops! 😨 Something unexpected happened...

[Error Code: 1101] cadence runtime error Execution failed:
error: mismatched types
  --> a8d1a60acba12a20.TMNFT:91:20
   |
91 |             return &self.ownedNFTs[id] as &NonFungibleToken.NFT  
   |                     ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?`

error: mismatched types
   --> a8d1a60acba12a20.TMNFT:108:27
    |
108 |                 let ref = &self.ownedNFTs[id] as auth &NonFungibleToken.NFT
    |                            ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?`

error: cannot find type in this scope: `TMNFT`
 --> 3362aa3b2c3cec5a86de65662a067cc070ae9f9ec0e18b4687f6db5c43a235c0:9:57
  |
9 |                         let collectionRef = acct.borrow<&TMNFT.Collection>(from: TMNFT.CollectionStoragePath)
  |                                                          ^^^^^ not found in this scope

error: cannot find variable in this scope: `TMNFT`
 --> 3362aa3b2c3cec5a86de65662a067cc070ae9f9ec0e18b4687f6db5c43a235c0:9:81
  |
9 |                         let collectionRef = acct.borrow<&TMNFT.Collection>(from: TMNFT.CollectionStoragePath)
  |                                                                                  ^^^^^ not found in this scope

error: cannot infer type parameter: `T`
 --> 3362aa3b2c3cec5a86de65662a067cc070ae9f9ec0e18b4687f6db5c43a235c0:9:44
  |
9 |                         let collectionRef = acct.borrow<&TMNFT.Collection>(from: TMNFT.CollectionStoragePath)
  |                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: cannot find variable in this scope: `TMNFT`
  --> 3362aa3b2c3cec5a86de65662a067cc070ae9f9ec0e18b4687f6db5c43a235c0:17:104
   |
17 |                         let receiverRef = recipient.getCapability<&{NonFungibleToken.CollectionPublic}>(TMNFT.CollectionPublicPath)
   |                                                                                                         ^^^^^ not found in this scope
Hash:
3362aa3b2c3cec5a86de65662a067cc070ae9f9ec0e18b4687f6db5c43a235c0
Status:
ERROR
Block height:
31762256
Block id:
621f326fdd348f304b70b6ea46add49b420d0370f3e71baff489a92b86ec9165
Timestamp:
Thursday 16 June 2022 at 04:13:14 UTC
()
Proposer:
Authorizers: