Flow price: --
57643c067eafaf2259c4862372f348cbfb88767cb8e1f800b00f4879557e40c4

Transaction

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

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

error: cannot find variable in this scope: `TMNFT`
  --> 57643c067eafaf2259c4862372f348cbfb88767cb8e1f800b00f4879557e40c4:17:104
   |
17 |                         let receiverRef = recipient.getCapability<&{NonFungibleToken.CollectionPublic}>(TMNFT.CollectionPublicPath)
   |                                                                                                         ^^^^^ not found in this scope
Hash:
57643c067eafaf2259c4862372f348cbfb88767cb8e1f800b00f4879557e40c4
Status:
ERROR
Block height:
31758660
Block id:
f5abb781b9184094bb2a62537a57cf41271ac9796272c0e038fa34016c8223e2
Timestamp:
Thursday 16 June 2022 at 02:50:02 UTC
()
Proposer:
Authorizers: