CODE_ERROR
There is an error in the cadence code of this transaction.
[Error Code: 1101] cadence runtime error Execution failed: error: mismatched types --> c8c340cebd11f690.DarkCountry:267:20 | 267 | return &self.ownedNFTs[id] as &NonFungibleToken.NFT | ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?` error: mismatched types --> c8c340cebd11f690.DarkCountry:277:27 | 277 | let ref = &self.ownedNFTs[id] as auth &NonFungibleToken.NFT | ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?` error: mismatched types --> c8c340cebd11f690.DarkCountry:267:20 | 267 | return &self.ownedNFTs[id] as &NonFungibleToken.NFT | ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?` error: mismatched types --> c8c340cebd11f690.DarkCountry:277:27 | 277 | let ref = &self.ownedNFTs[id] as auth &NonFungibleToken.NFT | ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?` error: cannot find type in this scope: `DarkCountry` --> c8c340cebd11f690.DarkCountryMarket:285:30 | 285 | buyerCollection: &DarkCountry.Collection{NonFungibleToken.Receiver}, | ^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `DarkCountry` --> c8c340cebd11f690.DarkCountryMarket:298:30 | 298 | buyerCollection: &DarkCountry.Collection{NonFungibleToken.Receiver}, | ^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `DarkCountry` --> c8c340cebd11f690.DarkCountryMarket:205:44 | 205 | sellerItemProvider: Capability<&DarkCountry.Collection{NonFungibleToken.Provider}>, | ^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `DarkCountry` --> c8c340cebd11f690.DarkCountryMarket:137:57 | 137 | access(self) let sellerItemProvider: Capability<&DarkCountry.Collection{NonFungibleToken.Provider}> | ^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `DarkCountry` --> c8c340cebd11f690.DarkCountryMarket:149:30 | 149 | buyerCollection: &DarkCountry.Collection{NonFungibleToken.Receiver}, | ^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `DarkCountry` --> c8c340cebd11f690.DarkCountryMarket:350:30 | 350 | buyerCollection: &DarkCountry.Collection{NonFungibleToken.Receiver}, | ^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `DarkCountry` --> c8c340cebd11f690.DarkCountryMarket:447:44 | 447 | sellerItemProvider: Capability<&DarkCountry.Collection{NonFungibleToken.Provider}>, | ^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `DarkCountry` --> c8c340cebd11f690.DarkCountryMarket:254:40 | 254 | sellerItemProvider: Capability<&DarkCountry.Collection{NonFungibleToken.Provider}>, | ^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `DarkCountry` --> c8c340cebd11f690.DarkCountryMarket:254:40 | 254 | sellerItemProvider: Capability<&DarkCountry.Collection{NonFungibleToken.Provider}>, | ^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `DarkCountry` --> c8c340cebd11f690.DarkCountryMarket:285:30 | 285 | buyerCollection: &DarkCountry.Collection{NonFungibleToken.Receiver}, | ^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `DarkCountry` --> c8c340cebd11f690.DarkCountryMarket:298:30 | 298 | buyerCollection: &DarkCountry.Collection{NonFungibleToken.Receiver}, | ^^^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `DarkCountry` --> c8c340cebd11f690.DarkCountryMarket:218:59 | 218 | let collectionBorrow = saleOwner.getCapability(DarkCountry.CollectionPublicPath)! | ^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `DarkCountry` --> c8c340cebd11f690.DarkCountryMarket:149:30 | 149 | buyerCollection: &DarkCountry.Collection{NonFungibleToken.Receiver}, | ^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `DarkCountry` --> c8c340cebd11f690.DarkCountryMarket:350:30 | 350 | buyerCollection: &DarkCountry.Collection{NonFungibleToken.Receiver}, | ^^^^^^^^^^^ not found in this scope error: mismatched types --> c8c340cebd11f690.DarkCountryMarket:377:24 | 377 | return &self.saleOffers[itemID] as &SaleOffer{SaleOfferPublicView} | ^^^^^^^^^^^^^^^^^^^^^^^ expected `DarkCountryMarket.SaleOffer{DarkCountryMarket.SaleOfferPublicView}`, got `DarkCountryMarket.SaleOffer?` error: cannot find type in this scope: `DarkCountry` --> c8c340cebd11f690.DarkCountryMarket:447:44 | 447 | sellerItemProvider: Capability<&DarkCountry.Collection{NonFungibleToken.Provider}>, | ^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `DarkCountry` --> dc7a52a574513e62bc24b97e42c43d986bfd7722f310f0e2108c3560d13db180:10:30 | 10 | if signer.borrow<&DarkCountry.Collection>(from: DarkCountry.CollectionStoragePath) == nil { | ^^^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `DarkCountry` --> dc7a52a574513e62bc24b97e42c43d986bfd7722f310f0e2108c3560d13db180:10:60 | 10 | if signer.borrow<&DarkCountry.Collection>(from: DarkCountry.CollectionStoragePath) == nil { | ^^^^^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> dc7a52a574513e62bc24b97e42c43d986bfd7722f310f0e2108c3560d13db180:10:15 | 10 | if signer.borrow<&DarkCountry.Collection>(from: DarkCountry.CollectionStoragePath) == nil { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find variable in this scope: `DarkCountry` --> dc7a52a574513e62bc24b97e42c43d986bfd7722f310f0e2108c3560d13db180:13:34 | 13 | let collection <- DarkCountry.createEmptyCollection() | ^^^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `DarkCountry` --> dc7a52a574513e62bc24b97e42c43d986bfd7722f310f0e2108c3560d13db180:16:46 | 16 | signer.save(<-collection, to: DarkCountry.CollectionStoragePath) | ^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `DarkCountry` --> dc7a52a574513e62bc24b97e42c43d986bfd7722f310f0e2108c3560d13db180:19:29 | 19 | signer.link<&DarkCountry.Collection{NonFungibleToken.CollectionPublic, DarkCountry.DarkCountryCollectionPublic}>(DarkCountry.CollectionPublicPath, target: DarkCountry.CollectionStoragePath) | ^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `DarkCountry` --> dc7a52a574513e62bc24b97e42c43d986bfd7722f310f0e2108c3560d13db180:19:87 | 19 | signer.link<&DarkCountry.Collection{NonFungibleToken.CollectionPublic, DarkCountry.DarkCountryCollectionPublic}>(DarkCountry.CollectionPublicPath, target: DarkCountry.CollectionStoragePath) | ^^^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `DarkCountry` --> dc7a52a574513e62bc24b97e42c43d986bfd7722f310f0e2108c3560d13db180:19:129 | 19 | signer.link<&DarkCountry.Collection{NonFungibleToken.CollectionPublic, DarkCountry.DarkCountryCollectionPublic}>(DarkCountry.CollectionPublicPath, target: DarkCountry.CollectionStoragePath) | ^^^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `DarkCountry` --> dc7a52a574513e62bc24b97e42c43d986bfd7722f310f0e2108c3560d13db180:19:171 | 19 | signer.link<&DarkCountry.Collection{NonFungibleToken.CollectionPublic, DarkCountry.DarkCountryCollectionPublic}>(DarkCountry.CollectionPublicPath, target: DarkCountry.CollectionStoragePath) | ^^^^^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> dc7a52a574513e62bc24b97e42c43d986bfd7722f310f0e2108c3560d13db180:19:16 | 19 | signer.link<&DarkCountry.Collection{NonFungibleToken.CollectionPublic, DarkCountry.DarkCountryCollectionPublic}>(DarkCountry.CollectionPublicPath, target: DarkCountry.CollectionStoragePath) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find type in this scope: `DarkCountryMarket` --> dc7a52a574513e62bc24b97e42c43d986bfd7722f310f0e2108c3560d13db180:23:30 | 23 | if signer.borrow<&DarkCountryMarket.Collection>(from: DarkCountryMarket.CollectionStoragePath) == nil { | ^^^^^^^^^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `DarkCountryMarket` --> dc7a52a574513e62bc24b97e42c43d986bfd7722f310f0e2108c3560d13db180:23:66 | 23 | if signer.borrow<&DarkCountryMarket.Collection>(from: DarkCountryMarket.CollectionStoragePath) == nil { | ^^^^^^^^^^^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> dc7a52a574513e62bc24b97e42c43d986bfd7722f310f0e2108c3560d13db180:23:15 | 23 | if signer.borrow<&DarkCountryMarket.Collection>(from: DarkCountryMarket.CollectionStoragePath) == nil { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find type in this scope: `DarkCountryMarket` --> dc7a52a574513e62bc24b97e42c43d986bfd7722f310f0e2108c3560d13db180:26:81 | 26 | let collection <- DarkCountryMarket.createEmptyCollection() as! @DarkCountryMarket.Collection | ^^^^^^^^^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `DarkCountryMarket` --> dc7a52a574513e62bc24b97e42c43d986bfd7722f310f0e2108c3560d13db180:26:34 | 26 | let collection <- DarkCountryMarket.createEmptyCollection() as! @DarkCountryMarket.Collection | ^^^^^^^^^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `DarkCountryMarket` --> dc7a52a574513e62bc24b97e42c43d986bfd7722f310f0e2108c3560d13db180:29:46 | 29 | signer.save(<-collection, to: DarkCountryMarket.CollectionStoragePath) | ^^^^^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `DarkCountryMarket` --> dc7a52a574513e62bc24b97e42c43d986bfd7722f310f0e2108c3560d13db180:32:29 | 32 | signer.link<&DarkCountryMarket.Collection{DarkCountryMarket.CollectionPublic}>(DarkCountryMarket.CollectionPublicPath, target: DarkCountryMarket.CollectionStoragePath) | ^^^^^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `DarkCountryMarket` --> dc7a52a574513e62bc24b97e42c43d986bfd7722f310f0e2108c3560d13db180:32:58 | 32 | signer.link<&DarkCountryMarket.Collection{DarkCountryMarket.CollectionPublic}>(DarkCountryMarket.CollectionPublicPath, target: DarkCountryMarket.CollectionStoragePath) | ^^^^^^^^^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `DarkCountryMarket` --> dc7a52a574513e62bc24b97e42c43d986bfd7722f310f0e2108c3560d13db180:32:95 | 32 | signer.link<&DarkCountryMarket.Collection{DarkCountryMarket.CollectionPublic}>(DarkCountryMarket.CollectionPublicPath, target: DarkCountryMarket.CollectionStoragePath) | ^^^^^^^^^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `DarkCountryMarket` --> dc7a52a574513e62bc24b97e42c43d986bfd7722f310f0e2108c3560d13db180:32:143 | 32 | signer.link<&DarkCountryMarket.Collection{DarkCountryMarket.CollectionPublic}>(DarkCountryMarket.CollectionPublicPath, target: DarkCountryMarket.CollectionStoragePath) | ^^^^^^^^^^^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> dc7a52a574513e62bc24b97e42c43d986bfd7722f310f0e2108c3560d13db180:32:16 | 32 | signer.link<&DarkCountryMarket.Collection{DarkCountryMarket.CollectionPublic}>(DarkCountryMarket.CollectionPublicPath, target: DarkCountryMarket.CollectionStoragePath) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^