Flow price: --
af87edf76c1b318ebc1fef9f3ecd6e97bedfb76c6b8450e4a6f1d5539f622733

Transaction

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

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

error: cannot find variable in this scope: `TMNFT`
  --> af87edf76c1b318ebc1fef9f3ecd6e97bedfb76c6b8450e4a6f1d5539f622733:17:104
   |
17 |                         let receiverRef = recipient.getCapability<&{NonFungibleToken.CollectionPublic}>(TMNFT.CollectionPublicPath)
   |                                                                                                         ^^^^^ not found in this scope
Hash:
af87edf76c1b318ebc1fef9f3ecd6e97bedfb76c6b8450e4a6f1d5539f622733
Status:
ERROR
Block height:
31749980
Block id:
acfcd26957923034c3e37b1f40c3e89c48e9b86fd578d16151c5156cbfd94a97
Timestamp:
Wednesday 15 June 2022 at 23:29:54 UTC
()
Proposer:
Authorizers: