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