Flow price: --
21ef86d9ce31a481e617ecc233f155c01da36091167254cb61d0cdb3e7eaaa4a

Transaction

Hash: 21ef86d9ce31a481e617ecc233f155c01da36091167254cb61d0cdb3e7eaaa4a
error
Error

Whoops! 😨 Something unexpected happened...

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

error: mismatched types
   --> 34ac358b9819f79d.NFTKred:158:27
    |
158 |                 let ref = &self.ownedNFTs[id] as auth &NonFungibleToken.NFT
    |                            ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?`

error: cannot find variable in this scope: `NFTKred`
 --> 21ef86d9ce31a481e617ecc233f155c01da36091167254cb61d0cdb3e7eaaa4a:8:42
  |
8 |                         let collection <- NFTKred.createEmptyCollection()
  |                                           ^^^^^^^ not found in this scope

error: mismatched types for type parameter
  --> 21ef86d9ce31a481e617ecc233f155c01da36091167254cb61d0cdb3e7eaaa4a:11:64
   |
11 |                         acct.save<@NonFungibleToken.Collection>(<-collection, to: /storage/NFTKredCollection)
   |                                                                 ^^^^^^^^^^^^ type parameter T is bound to `NonFungibleToken.Collection`, but got `<<invalid>>` here

error: cannot find type in this scope: `NFTKred`
  --> 21ef86d9ce31a481e617ecc233f155c01da36091167254cb61d0cdb3e7eaaa4a:17:35
   |
17 |                         acct.link<&NFTKred.Collection{NonFungibleToken.CollectionPublic, NFTKred.NFTKredCollectionPublic}>(NFTKred.CollectionPublicPath, target: NFTKred.CollectionStoragePath)
   |                                    ^^^^^^^ not found in this scope

error: cannot find type in this scope: `NFTKred`
  --> 21ef86d9ce31a481e617ecc233f155c01da36091167254cb61d0cdb3e7eaaa4a:17:89
   |
17 |                         acct.link<&NFTKred.Collection{NonFungibleToken.CollectionPublic, NFTKred.NFTKredCollectionPublic}>(NFTKred.CollectionPublicPath, target: NFTKred.CollectionStoragePath)
   |                                                                                          ^^^^^^^ not found in this scope

error: cannot find variable in this scope: `NFTKred`
  --> 21ef86d9ce31a481e617ecc233f155c01da36091167254cb61d0cdb3e7eaaa4a:17:123
   |
17 |                         acct.link<&NFTKred.Collection{NonFungibleToken.CollectionPublic, NFTKred.NFTKredCollectionPublic}>(NFTKred.CollectionPublicPath, target: NFTKred.CollectionStoragePath)
   |                                                                                                                            ^^^^^^^ not found in this scope

error: cannot find variable in this scope: `NFTKred`
  --> 21ef86d9ce31a481e617ecc233f155c01da36091167254cb61d0cdb3e7eaaa4a:17:161
   |
17 |                         acct.link<&NFTKred.Collection{NonFungibleToken.CollectionPublic, NFTKred.NFTKredCollectionPublic}>(NFTKred.CollectionPublicPath, target: NFTKred.CollectionStoragePath)
   |                                                                                                                                                                  ^^^^^^^ not found in this scope

error: cannot infer type parameter: `T`
  --> 21ef86d9ce31a481e617ecc233f155c01da36091167254cb61d0cdb3e7eaaa4a:17:24
   |
17 |                         acct.link<&NFTKred.Collection{NonFungibleToken.CollectionPublic, NFTKred.NFTKredCollectionPublic}>(NFTKred.CollectionPublicPath, target: NFTKred.CollectionStoragePath)
   |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Hash:
21ef86d9ce31a481e617ecc233f155c01da36091167254cb61d0cdb3e7eaaa4a
Status:
ERROR
Block height:
31757462
Block id:
018a318e3cabeebb6f3db11ab444ced130c3752b6ca25cf0a5bea265fb3bf687
Timestamp:
Thursday 16 June 2022 at 02:22:08 UTC
()
Proposer:
Authorizers: