Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
error: cannot deploy invalid contract
--> 203dd3905d490c26429f3279534da0567bcf4cf3f83c1e45d8a18feb28933331:3:2
|
3 | signer.contracts.update__experimental(name: name, code: code.decodeHex())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: cannot create bound method for resource
--> d3de94c8914fc06a.Collectible:374:45
|
374 | return MetadataViews.IPFSFile(cid: self.contentID, path: self.data.itemId.toString().concat(".gif"))
| ^^^^^^^^^^^^^^
error: mismatched types
--> d3de94c8914fc06a.Collectible:374:45
|
374 | return MetadataViews.IPFSFile(cid: self.contentID, path: self.data.itemId.toString().concat(".gif"))
| ^^^^^^^^^^^^^^ expected `String`, got `((): String)`
error: cannot find type in this scope: `FungibleToken`
--> d3de94c8914fc06a.Collectible:445:67
|
445 | recepient: creator.getCapability<&{FungibleToken.Receiver}>(/public/flowTokenReceiver),
| ^^^^^^^^^^^^^ not found in this scope
error: ambiguous restricted type
--> d3de94c8914fc06a.Collectible:445:66
|
445 | recepient: creator.getCapability<&{FungibleToken.Receiver}>(/public/flowTokenReceiver),
| ^^^^^^^^^^^^^^^^^^^^^^^^
error: mismatched types
--> d3de94c8914fc06a.Collectible:445:43
|
445 | recepient: creator.getCapability<&{FungibleToken.Receiver}>(/public/flowTokenReceiver),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Capability<&AnyResource{FungibleToken.Receiver}>`, got `Capability`
error: restricted type does not conform to restricting type: `MetadataViews.ResolverCollection`
--> d3de94c8914fc06a.Collectible:457:171
|
457 | publicLinkedType: Type<&Collectible.Collection{Collectible.CollectibleCollectionPublic,NonFungibleToken.CollectionPublic,NonFungibleToken.Receiver,MetadataViews.ResolverCollection}>(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: restricted type does not conform to restricting type: `MetadataViews.ResolverCollection`
--> d3de94c8914fc06a.Collectible:458:173
|
458 | providerLinkedType: Type<&Collectible.Collection{Collectible.CollectibleCollectionPublic,NonFungibleToken.CollectionPublic,NonFungibleToken.Provider,MetadataViews.ResolverCollection}>(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^