CODE_ERROR
There is an error in the cadence code of this transaction.
[Error Code: 1101] error caused by: 1 error occurred: * transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed: error: Parsing failed: error: `pub` is no longer a valid access keyword --> :13:0 | 13 | pub contract CarClubMainStorefront { | ^^^ error: `pub` is no longer a valid access keyword --> :15:4 | 15 | pub event CarClubStorefrontInitialized() | ^^^ error: `pub` is no longer a valid access keyword --> :16:4 | 16 | pub event StorefrontInitialized(storefrontResourceID: UInt64) | ^^^ error: `pub` is no longer a valid access keyword --> :17:4 | 17 | pub event StorefrontDestroyed(storefrontResourceID: UInt64) | ^^^ error: `pub` is no longer a valid access keyword --> :19:4 | 19 | pub event ListingAvailable( | ^^^ error: `pub` is no longer a valid access keyword --> :28:4 | 28 | pub event ListingCompleted( | ^^^ error: `pub` is no longer a valid access keyword --> :36:4 | 36 | pub let StorefrontMainStoragePath: StoragePath | ^^^ error: `pub` is no longer a valid access keyword --> :37:4 | 37 | pub let StorefrontMainPublicPath: PublicPath | ^^^ error: `pub` is no longer a valid access keyword --> :39:4 | 39 | pub struct ListingDetails { | ^^^ error: `pub` is no longer a valid access keyword --> :41:8 | 41 | pub var storefrontID: UInt64 | ^^^ error: `pub` is no longer a valid access keyword --> :43:8 | 43 | pub var purchased: Bool | ^^^ error: `pub` is no longer a valid access keyword --> :45:8 | 45 | pub let nftType: Type | ^^^ error: `pub` is no longer a valid access keyword --> :47:8 | 47 | pub let nftIDs: [UInt64] | ^^^ error: `pub` is no longer a valid access keyword --> :49:8 | 49 | pub let salePaymentVaultType: Type | ^^^ error: `pub` is no longer a valid access keyword --> :51:8 | 51 | pub let salePrice: UFix64 | ^^^ error: `pub` is no longer a valid access keyword --> :53:8 | 53 | pub let receiver: Capability<&{FungibleToken.Receiver}> | ^^^ error: `pub` is no longer a valid access keyword --> :55:8 | 55 | pub let discount: UFix64? | ^^^ error: `pub` is no longer a valid access keyword --> :90:4 | 90 | pub resource interface ListingPublic { | ^^^ error: `pub` is no longer a valid access keyword --> :101:8 | 101 | pub fun purchase(payment: @FungibleToken.Vault, collection: &NonFungibleToken.Collection{NonFungibleToken.Receiver}) | ^^^ error: restricted types have been removed; replace with the concrete type or an equivalent intersection type --> :101:97 | 101 | pub fun purchase(payment: @FungibleToken.Vault, collection: &NonFungibleToken.Collection{NonFungibleToken.Receiver}) | ^^^^^^^^^^^^^^^^ --> cefc0102049c1e1349e5895158f9c377d54394f5e643b94f7fd7ce370168855b:10:8 | 10 | if acct.storage.borrow<&MainCCStorefront.Storefront>(from: storefrontStoragePath) == nil { 11 | 12 | // Create a new storefront 13 | let storefront <- MainCCStorefront.createStorefront() as! @MainCCStorefront.Storefront 14 | 15 | // Save the new storefront to the storage 16 | acct.storage.save(<-storefront, to: storefrontStoragePath) 17 | 18 | // Link the storefront to the public path 19 | let storefrontPublicCap = acct.capabilities.storage.issue<&{MainCCStorefront.StorefrontPublic}>( 20 | storefrontStoragePath 21 | ) 22 | acct.capabilities.publish 23 | 24 | } | ^Loading...