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 --> 6157a7ef24d91814836eee964ad859638948ad8f4278acb6439dc218709ac8e3: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` --> 4e1a246d0753fe0e.StoreFrontSuperAdmin:85:47 | 85 | pub fun receiveAdmin(adminRef: Capability<&StoreFront.Admin>) | ^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `StoreFront` --> 4e1a246d0753fe0e.StoreFrontSuperAdmin:42:32 | 42 | pub var adminRef: @{UInt64: StoreFront.Admin} | ^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `StoreFront` --> 4e1a246d0753fe0e.StoreFrontSuperAdmin:75:30 | 75 | pub fun withdrawAdmin(): @StoreFront.Admin { | ^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `StoreFront` --> 4e1a246d0753fe0e.StoreFrontSuperAdmin:91:43 | 91 | access(self) var adminRef: Capability<&StoreFront.Admin>? | ^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `StoreFront` --> 4e1a246d0753fe0e.StoreFrontSuperAdmin:99:47 | 99 | pub fun receiveAdmin(adminRef: Capability<&StoreFront.Admin>) { | ^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `StoreFront` --> 4e1a246d0753fe0e.StoreFrontSuperAdmin:107:28 | 107 | pub fun getAdminRef(): &StoreFront.Admin? { | ^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `StoreFront` --> 4e1a246d0753fe0e.StoreFrontSuperAdmin:85:47 | 85 | pub fun receiveAdmin(adminRef: Capability<&StoreFront.Admin>) | ^^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `StoreFront` --> 4e1a246d0753fe0e.StoreFrontSuperAdmin:48:27 | 48 | self.adminRef[0] <-! StoreFront.createStoreFrontAdmin() | ^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `StoreFront` --> 4e1a246d0753fe0e.StoreFrontSuperAdmin:75:30 | 75 | pub fun withdrawAdmin(): @StoreFront.Admin { | ^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `StoreFront` --> 4e1a246d0753fe0e.StoreFrontSuperAdmin:99:47 | 99 | pub fun receiveAdmin(adminRef: Capability<&StoreFront.Admin>) { | ^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `StoreFront` --> 4e1a246d0753fe0e.StoreFrontSuperAdmin:107:28 | 107 | pub fun getAdminRef(): &StoreFront.Admin? { | ^^^^^^^^^^ not found in this sco
Arguments:
name:
StoreFrontSuperAdmin
code:
2f2f20535044582d4c69...28290d0a20207d0d0a7d