Flow price: --
b4678ed3e22ae76d03dbeef6ffb7b259918380cfb1889cc5a4f9de685faf9a54

Transaction

Hash: b4678ed3e22ae76d03dbeef6ffb7b259918380cfb1889cc5a4f9de685faf9a54
error
Error

Whoops! 😨 Something unexpected happened...

[Error Code: 1101] cadence runtime error Execution failed:
error: mismatched types
   --> f5b0eb433389ac3f.Edition:185:27
    |
185 |             let itemRef = &self.editionItems[id] as &EditionItem
    |                            ^^^^^^^^^^^^^^^^^^^^^ expected `Edition.EditionItem`, got `Edition.EditionItem?`

error: mismatched types
   --> f5b0eb433389ac3f.Edition:200:27
    |
200 |             let itemRef = &self.editionItems[id] as &EditionItem
    |                            ^^^^^^^^^^^^^^^^^^^^^ expected `Edition.EditionItem`, got `Edition.EditionItem?`

error: mismatched types
   --> f5b0eb433389ac3f.Edition:216:27
    |
216 |             let itemRef = &self.editionItems[id] as &EditionItem
    |                            ^^^^^^^^^^^^^^^^^^^^^ expected `Edition.EditionItem`, got `Edition.EditionItem?`

error: mismatched types
   --> f5b0eb433389ac3f.Collectible:142:23
    |
142 |             let ref = &self.ownedNFTs[id] as auth &NonFungibleToken.NFT
    |                        ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?`

error: mismatched types
   --> f5b0eb433389ac3f.Collectible:162:20
    |
162 |             return &self.ownedNFTs[id] as &NonFungibleToken.NFT
    |                     ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?`

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

error: cannot find type in this scope: `Edition`
   --> f5b0eb433389ac3f.Collectible:196:65
    |
196 |             let editionRef = Collectible.account.getCapability<&{Edition.EditionCollectionPublic}>(Edition.CollectionPublicPath).borrow()! 
    |                                                                  ^^^^^^^ not found in this scope

error: ambiguous restricted type
   --> f5b0eb433389ac3f.Collectible:196:64
    |
196 |             let editionRef = Collectible.account.getCapability<&{Edition.EditionCollectionPublic}>(Edition.CollectionPublicPath).borrow()! 
    |                                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: cannot find variable in this scope: `Edition`
   --> f5b0eb433389ac3f.Collectible:196:99
    |
196 |             let editionRef = Collectible.account.getCapability<&{Edition.EditionCollectionPublic}>(Edition.CollectionPublicPath).borrow()! 
    |                                                                                                    ^^^^^^^ not found in this scope

error: cannot infer type parameter: `T`
   --> f5b0eb433389ac3f.Collectible:196:29
    |
196 |             let editionRef = Collectible.account.getCapability<&{Edition.EditionCollectionPublic}>(Edition.CollectionPublicPath).borrow()! 
    |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: cannot find type in this scope: `Collectible`
  --> b4678ed3e22ae76d03dbeef6ffb7b259918380cfb1889cc5a4f9de685faf9a54:26:34
   |
26 |         if !signer.getCapability<&Collectible.Collection{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>(nftCollectionProviderPrivatePath)!.check() {
   |                                   ^^^^^^^^^^^ not found in this scope

error: cannot infer type parameter: `T`
  --> b4678ed3e22ae76d03dbeef6ffb7b259918380cfb1889cc5a4f9de685faf9a54:26:12
   |
26 |         if !signer.getCapability<&Collectible.Collection{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>(nftCollectionProviderPrivatePath)!.check() {
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: cannot find type in this scope: `Collectible`
  --> b4678ed3e22ae76d03dbeef6ffb7b259918380cfb1889cc5a4f9de685faf9a54:27:25
   |
27 |             signer.link<&Collectible.Collection{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>(nftCollectionProviderPrivatePath, target: Collectible.CollectionStoragePath)
   |                          ^^^^^^^^^^^ not found in this scope

error: cannot find variable in this scope: `Collectible`
  --> b4678ed3e22ae76d03dbeef6ffb7b259918380cfb1889cc5a4f9de685faf9a54:27:153
   |
27 |             signer.link<&Collectible.Collection{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>(nftCollectionProviderPrivatePath, target: Collectible.CollectionStoragePath)
   |                                                                                                                                                          ^^^^^^^^^^^ not found in this scope

error: cannot infer type parameter: `T`
  --> b4678ed3e22ae76d03dbeef6ffb7b259918380cfb1889cc5a4f9de685faf9a54:27:12
   |
27 |             signer.link<&Collectible.Collection{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>(nftCollectionProviderPrivatePath, target: Collectible.CollectionStoragePath)
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: cannot find type in this scope: `Collectible`
  --> b4678ed3e22ae76d03dbeef6ffb7b259918380cfb1889cc5a4f9de685faf9a54:45:67
   |
45 |         if let listingID = Marketplace.getListingID(nftType: Type<@Collectible.NFT>(), nftID: saleItemID) {
   |                                                                    ^^^^^^^^^^^ not found in this scope

error: cannot infer type parameter: `T`
  --> b4678ed3e22ae76d03dbeef6ffb7b259918380cfb1889cc5a4f9de685faf9a54:45:61
   |
45 |         if let listingID = Marketplace.getListingID(nftType: Type<@Collectible.NFT>(), nftID: saleItemID) {
   |                                                              ^^^^^^^^^^^^^^^^^^^^^^^^

error: cannot find type in this scope: `Collectible`
  --> b4678ed3e22ae76d03dbeef6ffb7b259918380cfb1889cc5a4f9de685faf9a54:55:77
   |
55 |         let requirements = Marketplace.getSaleCutRequirements(nftType: Type<@Collectible.NFT>())
   |                                                                              ^^^^^^^^^^^ not found in this scope

error: cannot infer type parameter: `T`
  --> b4678ed3e22ae76d03dbeef6ffb7b259918380cfb1889cc5a4f9de685faf9a54:55:71
   |
55 |         let requirements = Marketplace.getSaleCutRequirements(nftType: Type<@Collectible.NFT>())
   |                                                                        ^^^^^^^^^^^^^^^^^^^^^^^^

error: cannot find type in this scope: `Collectible`
  --> b4678ed3e22ae76d03dbeef6ffb7b259918380cfb1889cc5a4f9de685faf9a54:73:27
   |
73 |             nftType: Type<@Collectible.NFT>(),
   |                            ^^^^^^^^^^^ not found in this scope

error: cannot infer type parameter: `T`
  --> b4678ed3e22ae76d03dbeef6ffb7b259918380cfb1889cc5a4f9de685faf9a54:73:21
   |
73 |             nftType: Type<@Collectible.NFT>(),
   |                      ^^^^^^^^^^^^^^^^^^^^^^^^
Hash:
b4678ed3e22ae76d03dbeef6ffb7b259918380cfb1889cc5a4f9de685faf9a54
Status:
ERROR
Block height:
31924949
Block id:
33ecaa45234a895c636b43b715f0f521fde112ed447fbb7be9408b6d8f0aa061
Timestamp:
Monday 20 June 2022 at 07:49:57 UTC
()
Proposer:
Authorizers: