CODE_ERROR
There is an error in the cadence code of this transaction.
[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` --> 9a76e317589aa34d76740349b17321948606d935bb89779f0bff78e3bd4dc716: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` --> 9a76e317589aa34d76740349b17321948606d935bb89779f0bff78e3bd4dc716:26:12 | 26 | if !signer.getCapability<&Collectible.Collection{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>(nftCollectionProviderPrivatePath)!.check() { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find type in this scope: `Collectible` --> 9a76e317589aa34d76740349b17321948606d935bb89779f0bff78e3bd4dc716: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` --> 9a76e317589aa34d76740349b17321948606d935bb89779f0bff78e3bd4dc716: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` --> 9a76e317589aa34d76740349b17321948606d935bb89779f0bff78e3bd4dc716:27:12 | 27 | signer.link<&Collectible.Collection{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>(nftCollectionProviderPrivatePath, target: Collectible.CollectionStoragePath) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find type in this scope: `Collectible` --> 9a76e317589aa34d76740349b17321948606d935bb89779f0bff78e3bd4dc716: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` --> 9a76e317589aa34d76740349b17321948606d935bb89779f0bff78e3bd4dc716:45:61 | 45 | if let listingID = Marketplace.getListingID(nftType: Type<@Collectible.NFT>(), nftID: saleItemID) { | ^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find type in this scope: `Collectible` --> 9a76e317589aa34d76740349b17321948606d935bb89779f0bff78e3bd4dc716:55:77 | 55 | let requirements = Marketplace.getSaleCutRequirements(nftType: Type<@Collectible.NFT>()) | ^^^^^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> 9a76e317589aa34d76740349b17321948606d935bb89779f0bff78e3bd4dc716:55:71 | 55 | let requirements = Marketplace.getSaleCutRequirements(nftType: Type<@Collectible.NFT>()) | ^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find type in this scope: `Collectible` --> 9a76e317589aa34d76740349b17321948606d935bb89779f0bff78e3bd4dc716:73:27 | 73 | nftType: Type<@Collectible.NFT>(), | ^^^^^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> 9a76e317589aa34d76740349b17321948606d935bb89779f0bff78e3bd4dc716:73:21 | 73 | nftType: Type<@Collectible.NFT>(), | ^^^^^^^^^^^^^^^^^^^^^^^^Arguments:
saleItemID:
79314
saleItemPrice:
0.1
Loading...