Whoops! 😨 Something unexpected happened...
[Error Code: 1101] cadence runtime error Execution failed:
error: mismatched types
--> 135777519e96841dae825fded2b9ca9c4ac3924537e38c070c270d0787f2cec7:32:11
|
32 | return [nftCollectionProviderPrivatePath, RaceDay_NFT.CollectionStoragePath]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&AnyResource{NonFungibleToken.Receiver}`, got `[Path]`
error: mismatched types
--> 135777519e96841dae825fded2b9ca9c4ac3924537e38c070c270d0787f2cec7:38:11
|
38 | return [nftCollectionProviderPrivatePath, ARTIFACT.collectionStoragePath]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&AnyResource{NonFungibleToken.Receiver}`, got `[Path]`
error: cannot infer type from array literal: requires an explicit type annotation
--> 135777519e96841dae825fded2b9ca9c4ac3924537e38c070c270d0787f2cec7:62:41
|
62 | var nftCollectionProvidersPath = []
| ^
error: missing initialization of field `ftType` in type `Transaction`
--> 135777519e96841dae825fded2b9ca9c4ac3924537e38c070c270d0787f2cec7:44:8
|
44 | var ftType: Type?
| ^^^^^^ not initialized
error: missing initialization of field `receiverPath` in type `Transaction`
--> 135777519e96841dae825fded2b9ca9c4ac3924537e38c070c270d0787f2cec7:45:8
|
45 | var receiverPath: PublicPath?
| ^^^^^^^^^^^^ not initialized
error: cannot find variable in this scope: `listingID`
--> 135777519e96841dae825fded2b9ca9c4ac3924537e38c070c270d0787f2cec7:88:31
|
88 | if listingIDs.contains(listingID) {
| ^^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `listingID`
--> 135777519e96841dae825fded2b9ca9c4ac3924537e38c070c270d0787f2cec7:89:61
|
89 | self.storefront.removeListing(listingResourceID: listingID)
| ^^^^^^^^^ not found in this scope