Flow price: --
a879f4e1ca2317f4989bb8aad50d12efe823d7a667f17d42c9059dd7a5a9e80d

Transaction

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

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

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