Flow price: --
1a8f97ffb4869a40c05077747a1c737d95bf671320d3472086cf05c1cfa6b6aa

Transaction

Hash: 1a8f97ffb4869a40c05077747a1c737d95bf671320d3472086cf05c1cfa6b6aa
error
Error

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
 --> 1a8f97ffb4869a40c05077747a1c737d95bf671320d3472086cf05c1cfa6b6aa:4:3
  |
4 | 			signer.contracts.add(name: name, code: code.utf8 )
  | 			^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: cannot find variable in this scope: `NFTStorefrontV2`
  --> 47d3b365f36b5bd1.ExampleNFT:90:8
   |
90 |         NFTStorefrontV2.TreasuryAccount = TreasuryAccount
   |         ^^^^^^^^^^^^^^^ not found in this scope

error: cannot find variable in this scope: `mintNFT`
   --> 47d3b365f36b5bd1.ExampleNFT:494:8
    |
494 |         mintNFT (
    |         ^^^^^^^ not found in this scope

error: missing return statement
   --> 47d3b365f36b5bd1.ExampleNFT:490:23
    |
490 |     ): @ExampleNFT.NFT {
491 | 
492 |         // Have to place sign verification here
493 | 
494 |         mintNFT (
495 |             name,
496 |             description,
497 |             thumbnail,
498 |             royalties,
499 |             questionID,
500 |             side,
501 |             signature,
502 |             salt
503 |         )
504 | 
505 |         
506 |     }
    |     ^^^^^^^^^^^^^^^^^^^^^

error: cannot find variable in this scope: `NFTStorefrontV2`
   --> 47d3b365f36b5bd1.ExampleNFT:513:46
    |
513 |         let treasuryAccountVault = getAccount(NFTStorefrontV2.TreasuryAccount)
    |                                               ^^^^^^^^^^^^^^^ not found in this scope

error: cannot find type in this scope: `FlowToken`
   --> 47d3b365f36b5bd1.ExampleNFT:514:31
    |
514 |             .capabilities.get<&FlowToken.Vault>(/public/flowTokenReceiver)
    |                                ^^^^^^^^^ not found in this scope

error: cannot infer type parameter: `T`
   --> 47d3b365f36b5bd1.ExampleNFT:513:35
    |
513 |         let treasuryAccountVault = getAccount(NFTStorefrontV2.TreasuryAccount)
514 |             .capabilities.get<&FlowToken.Vault>(/public/flowTokenReceiver)
    |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: cannot infer type parameter: `T`
   --> 47d3b365f36b5bd1.ExampleNFT:513:35
    |
513 |         let treasuryAccountVault = getAccount(NFTStorefrontV2.TreasuryAccount)
514 |             .capabilities.get<&FlowToken.Vault>(/public/flowTokenReceiver)
515 |             .borrow()
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: value of type `&Account` has no member `getCapability`
   --> 47d3b365f36b5bd1.ExampleNFT:521:13
    |
521 |             .getCapability<&{NonFungibleToken.CollectionPublic}>(ExampleNFT.CollectionPublicPath)
    |              ^^^^^^^^^^^^^ unknown member

error: cannot find variable in this scope: `newNFT`
   --> 47d3b365f36b5bd1.ExampleNFT:526:45
    |
526 |         callerCollectionRef.deposit(token: <-newNFT)
    |                                              ^^^^^^ not found in this scope


Hash:
1a8f97ffb4869a40c05077747a1c737d95bf671320d3472086cf05c1cfa6b6aa
Status:
ERROR
Block height:
216999472
Block id:
e637fd357eec7c8dc830227e6763ca774bd317e690d7ce5393f05e54e2424ecd
Timestamp:
Tuesday 17 September 2024 at 13:59:43 UTC
()
Proposer:
Authorizers:
Gas used:
0