Flow price: --
256ad88f2330eff737c7a06b5d5b2ae0eb01fb8265b9db3780c7462145e1d778

Transaction

Hash: 256ad88f2330eff737c7a06b5d5b2ae0eb01fb8265b9db3780c7462145e1d778
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`
 --> 256ad88f2330eff737c7a06b5d5b2ae0eb01fb8265b9db3780c7462145e1d778: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`
 --> 256ad88f2330eff737c7a06b5d5b2ae0eb01fb8265b9db3780c7462145e1d778:9:81
  |
9 |                         let collectionRef = acct.borrow<&TMNFT.Collection>(from: TMNFT.CollectionStoragePath)
  |                                                                                  ^^^^^ not found in this scope

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

error: cannot find variable in this scope: `TMNFT`
  --> 256ad88f2330eff737c7a06b5d5b2ae0eb01fb8265b9db3780c7462145e1d778:17:104
   |
17 |                         let receiverRef = recipient.getCapability<&{NonFungibleToken.CollectionPublic}>(TMNFT.CollectionPublicPath)
   |                                                                                                         ^^^^^ not found in this scope
Hash:
256ad88f2330eff737c7a06b5d5b2ae0eb01fb8265b9db3780c7462145e1d778
Status:
ERROR
Block height:
31814145
Block id:
bf50a96aa8139a2342a1768174ee55cba8cde44d2fc0c7c6220a580cffa9ee8b
Timestamp:
Friday 17 June 2022 at 02:32:20 UTC
()
Proposer:
Authorizers: