CODE_ERROR
There is an error in the cadence code of this transaction.
[Error Code: 1101] cadence runtime error Execution failed: error: cannot deploy invalid contract --> a58cebb418cf229392f9412b4d2475d8650ae5635fe89c1d7c29d97857a87bbb:4:3 | 4 | signer.contracts.add(name: name, code: code.decodeHex() ) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: mismatched types --> 4e1a246d0753fe0e.StoreFront:250:19 | 250 | let ref = &self.ownedNFTs[id] as auth &NonFungibleToken.NFT | ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?` error: mismatched types --> 4e1a246d0753fe0e.StoreFront:258:14 | 258 | return &self.ownedNFTs[id] as &NonFungibleToken.NFT | ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?` error: mismatched types --> 4e1a246d0753fe0e.StoreFront:262:17 | 262 | let nft = &self.ownedNFTs[id] as auth &NonFungibleToken.NFT | ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?` error: cannot find type in this scope: `StoreFront` --> ecc3e989544708a0.StoreFrontSuperAdmin:85:47 | 85 | pub fun receiveAdmin(adminRef: Capability<&StoreFront.Admin>) | ^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `StoreFront` --> ecc3e989544708a0.StoreFrontSuperAdmin:42:32 | 42 | pub var adminRef: @{UInt64: StoreFront.Admin} | ^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `StoreFront` --> ecc3e989544708a0.StoreFrontSuperAdmin:75:30 | 75 | pub fun withdrawAdmin(): @StoreFront.Admin { | ^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `StoreFront` --> ecc3e989544708a0.StoreFrontSuperAdmin:91:43 | 91 | access(self) var adminRef: Capability<&StoreFront.Admin>? | ^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `StoreFront` --> ecc3e989544708a0.StoreFrontSuperAdmin:99:47 | 99 | pub fun receiveAdmin(adminRef: Capability<&StoreFront.Admin>) { | ^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `StoreFront` --> ecc3e989544708a0.StoreFrontSuperAdmin:107:28 | 107 | pub fun getAdminRef(): &StoreFront.Admin? { | ^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `StoreFront` --> ecc3e989544708a0.StoreFrontSuperAdmin:85:47 | 85 | pub fun receiveAdmin(adminRef: Capability<&StoreFront.Admin>) | ^^^^^^^^^^ not found in this scope error: cannot access `createStorefront`: function has account access --> ecc3e989544708a0.StoreFrontSuperAdmin:46:25 | 46 | self.storeFront <- NFTStorefront.createStorefront() | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find variable in this scope: `StoreFront` --> ecc3e989544708a0.StoreFrontSuperAdmin:48:27 | 48 | self.adminRef[0] <-! StoreFront.createStoreFrontAdmin() | ^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `StoreFront` --> ecc3e989544708a0.StoreFrontSuperAdmin:75:30 | 75 | pub fun withdrawAdmin(): @StoreFront.Admin { | ^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `StoreFront` --> ecc3e989544708a0.StoreFrontSuperAdmin:99:47 | 99 | pub fun receiveAdmin(adminRef: Capability<&StoreFront.Admin>) { | ^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `StoreFront` --> ecc3e989544708a0.StoreFrontSuperAdmin:107:28 | 107 | pub fun getAdminRef(): &StoreFront.Admin? { | ^^^^^^^^^^ not found in this scopeArguments:
name:
StoreFrontSuperAdmin
code:
2f2f20535044582d4c69...28290d0a20207d0d0a7d
Loading...