Flow price: --
ff6a269572338ae4926082c3eb1903e5b7a15a7271020663583055450cbc44c0

Transaction

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

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

error: cannot find variable in this scope: `TMNFT`
  --> ff6a269572338ae4926082c3eb1903e5b7a15a7271020663583055450cbc44c0:17:104
   |
17 |                         let receiverRef = recipient.getCapability<&{NonFungibleToken.CollectionPublic}>(TMNFT.CollectionPublicPath)
   |                                                                                                         ^^^^^ not found in this scope
Hash:
ff6a269572338ae4926082c3eb1903e5b7a15a7271020663583055450cbc44c0
Status:
ERROR
Block height:
31790314
Block id:
9efd282294a73d5a6ca4a98ea5c36d3b567c8aa9bc1026b969c165424f8d2135
Timestamp:
Thursday 16 June 2022 at 15:28:22 UTC
()
Proposer:
Authorizers: