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