Flow price: --
7fd27ea5ec162974a9abdfa927cf2f1b3fa19908b6f0dcb8d0ef7b61afbb6b85

Transaction

Hash: 7fd27ea5ec162974a9abdfa927cf2f1b3fa19908b6f0dcb8d0ef7b61afbb6b85
error
Error

Whoops! 😨 Something unexpected happened...

[Error Code: 1101] cadence runtime error Execution failed:
error: mismatched types
  --> 4c44f3b1e4e70b20.FanfareNFTContract:90:20
   |
90 |             return &self.ownedNFTs[id] as &NonFungibleToken.NFT
   |                     ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?`

error: mismatched types
  --> 4c44f3b1e4e70b20.FanfareNFTContract:97:27
   |
97 |                 let ref = &self.ownedNFTs[id] as auth &NonFungibleToken.NFT
   |                            ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?`

error: cannot find type in this scope: `FanfareNFTContract`
 --> 7fd27ea5ec162974a9abdfa927cf2f1b3fa19908b6f0dcb8d0ef7b61afbb6b85:8:24
  |
8 |         if acct.borrow<&FanfareNFTContract.Collection>(from: FanfareNFTContract.CollectionStoragePath) == nil {
  |                         ^^^^^^^^^^^^^^^^^^ not found in this scope

error: cannot find variable in this scope: `FanfareNFTContract`
 --> 7fd27ea5ec162974a9abdfa927cf2f1b3fa19908b6f0dcb8d0ef7b61afbb6b85:8:61
  |
8 |         if acct.borrow<&FanfareNFTContract.Collection>(from: FanfareNFTContract.CollectionStoragePath) == nil {
  |                                                              ^^^^^^^^^^^^^^^^^^ not found in this scope

error: cannot infer type parameter: `T`
 --> 7fd27ea5ec162974a9abdfa927cf2f1b3fa19908b6f0dcb8d0ef7b61afbb6b85:8:11
  |
8 |         if acct.borrow<&FanfareNFTContract.Collection>(from: FanfareNFTContract.CollectionStoragePath) == nil {
  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: cannot find type in this scope: `FanfareNFTContract`
 --> 7fd27ea5ec162974a9abdfa927cf2f1b3fa19908b6f0dcb8d0ef7b61afbb6b85:9:78
  |
9 |             let collection <- FanfareNFTContract.createEmptyCollection() as! @FanfareNFTContract.Collection
  |                                                                               ^^^^^^^^^^^^^^^^^^ not found in this scope

error: cannot find variable in this scope: `FanfareNFTContract`
 --> 7fd27ea5ec162974a9abdfa927cf2f1b3fa19908b6f0dcb8d0ef7b61afbb6b85:9:30
  |
9 |             let collection <- FanfareNFTContract.createEmptyCollection() as! @FanfareNFTContract.Collection
  |                               ^^^^^^^^^^^^^^^^^^ not found in this scope

error: cannot find variable in this scope: `FanfareNFTContract`
  --> 7fd27ea5ec162974a9abdfa927cf2f1b3fa19908b6f0dcb8d0ef7b61afbb6b85:10:40
   |
10 |             acct.save(<-collection, to: FanfareNFTContract.CollectionStoragePath)
   |                                         ^^^^^^^^^^^^^^^^^^ not found in this scope

error: cannot find type in this scope: `FanfareNFTContract`
  --> 7fd27ea5ec162974a9abdfa927cf2f1b3fa19908b6f0dcb8d0ef7b61afbb6b85:11:24
   |
11 |             acct.link<&{FanfareNFTContract.FanfareNFTCollectionPublic}>(FanfareNFTContract.CollectionPublicPath, target: FanfareNFTContract.CollectionStoragePath)
   |                         ^^^^^^^^^^^^^^^^^^ not found in this scope

error: ambiguous restricted type
  --> 7fd27ea5ec162974a9abdfa927cf2f1b3fa19908b6f0dcb8d0ef7b61afbb6b85:11:23
   |
11 |             acct.link<&{FanfareNFTContract.FanfareNFTCollectionPublic}>(FanfareNFTContract.CollectionPublicPath, target: FanfareNFTContract.CollectionStoragePath)
   |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: cannot find variable in this scope: `FanfareNFTContract`
  --> 7fd27ea5ec162974a9abdfa927cf2f1b3fa19908b6f0dcb8d0ef7b61afbb6b85:11:72
   |
11 |             acct.link<&{FanfareNFTContract.FanfareNFTCollectionPublic}>(FanfareNFTContract.CollectionPublicPath, target: FanfareNFTContract.CollectionStoragePath)
   |                                                                         ^^^^^^^^^^^^^^^^^^ not found in this scope

error: cannot find variable in this scope: `FanfareNFTContract`
  --> 7fd27ea5ec162974a9abdfa927cf2f1b3fa19908b6f0dcb8d0ef7b61afbb6b85:11:121
   |
11 |             acct.link<&{FanfareNFTContract.FanfareNFTCollectionPublic}>(FanfareNFTContract.CollectionPublicPath, target: FanfareNFTContract.CollectionStoragePath)
   |                                                                                                                          ^^^^^^^^^^^^^^^^^^ not found in this scope

error: cannot infer type parameter: `T`
  --> 7fd27ea5ec162974a9abdfa927cf2f1b3fa19908b6f0dcb8d0ef7b61afbb6b85:11:12
   |
11 |             acct.link<&{FanfareNFTContract.FanfareNFTCollectionPublic}>(FanfareNFTContract.CollectionPublicPath, target: FanfareNFTContract.CollectionStoragePath)
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Hash:
7fd27ea5ec162974a9abdfa927cf2f1b3fa19908b6f0dcb8d0ef7b61afbb6b85
Status:
ERROR
Block height:
33644350
Block id:
f0ba4eba88a4e0b50803109c8cffd67d776a029f219814b8bdf957b113ef01f3
Timestamp:
Tuesday 19 July 2022 at 10:12:34 UTC
()
Proposer:
Authorizers: