Flow price: --
4cec96510398dfb3ff3fea30d53555935494b9e8a2e848b7e3cce48727d7f93b

Transaction

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

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:
4cec96510398dfb3ff3fea30d53555935494b9e8a2e848b7e3cce48727d7f93b
Status:
ERROR
Block height:
216999616
Block id:
6bf0c5ae30cc37f8edcfa3dd6a98efa07d7c3c44941ef8a0ec23b8819a102b27
Timestamp:
Tuesday 17 September 2024 at 14:00:55 UTC
()
Proposer:
Authorizers:
Gas used:
0