Flow price: --
f950bb1998c379531dc4535d32f2dc0f5fe224841371b32a26e8c336994bceb9

Transaction

Hash: f950bb1998c379531dc4535d32f2dc0f5fe224841371b32a26e8c336994bceb9
error
Error

Whoops! 😨 Something unexpected happened...

[Error Code: 1101] error caused by: 1 error occurred:
	* transaction preprocess failed: [Error Code: 1101] cadence runtime error: Execution failed:
error: cannot find variable in this scope: `lockedHolder`
  --> f950bb1998c379531dc4535d32f2dc0f5fe224841371b32a26e8c336994bceb9:27:15
   |
27 |             if lockedHolder.check() {
   |                ^^^^^^^^^^^^ not found in this scope

error: cannot find variable in this scope: `flowToken`
  --> f950bb1998c379531dc4535d32f2dc0f5fe224841371b32a26e8c336994bceb9:28:99
   |
28 |                 signer.storage.save(<-FlowStakingCollection.createStakingCollection(unlockedVault: flowToken, tokenHolder: lockedHolder), to: FlowStakingCollection.StakingCollectionStoragePath)
   |                                                                                                    ^^^^^^^^^ not found in this scope

error: cannot find variable in this scope: `lockedHolder`
  --> f950bb1998c379531dc4535d32f2dc0f5fe224841371b32a26e8c336994bceb9:28:123
   |
28 |                 signer.storage.save(<-FlowStakingCollection.createStakingCollection(unlockedVault: flowToken, tokenHolder: lockedHolder), to: FlowStakingCollection.StakingCollectionStoragePath)
   |                                                                                                                            ^^^^^^^^^^^^ not found in this scope

error: cannot find variable in this scope: `flowToken`
  --> f950bb1998c379531dc4535d32f2dc0f5fe224841371b32a26e8c336994bceb9:30:99
   |
30 |                 signer.storage.save(<-FlowStakingCollection.createStakingCollection(unlockedVault: flowToken, tokenHolder: nil), to: FlowStakingCollection.StakingCollectionStoragePath)
   |                                                                                                    ^^^^^^^^^ not found in this scope

error: cannot access `issue`: function requires `Capabilities | StorageCapabilities | IssueStorageCapabilityController` authorization, but reference only has `SaveValue, LoadValue, CopyValue, BorrowValue, Storage` authorization
  --> f950bb1998c379531dc4535d32f2dc0f5fe224841371b32a26e8c336994bceb9:38:39
   |
38 |             let stakingCollectionCap = signer.capabilities.storage.issue<&{FlowStakingCollection.StakingCollectionPublic}>(FlowStakingCollection.StakingCollectionStoragePath)
   |                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: cannot access `publish`: function requires `Capabilities | PublishCapability` authorization, but reference only has `SaveValue, LoadValue, CopyValue, BorrowValue, Storage` authorization
  --> f950bb1998c379531dc4535d32f2dc0f5fe224841371b32a26e8c336994bceb9:39:12
   |
39 |             signer.capabilities.publish(stakingCollectionCap, at: StakingCollectionPublicPath)
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: cannot find variable in this scope: `StakingCollectionPublicPath`
  --> f950bb1998c379531dc4535d32f2dc0f5fe224841371b32a26e8c336994bceb9:39:66
   |
39 |             signer.capabilities.publish(stakingCollectionCap, at: StakingCollectionPublicPath)
   |                                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope


Hash:
f950bb1998c379531dc4535d32f2dc0f5fe224841371b32a26e8c336994bceb9
Status:
ERROR
Block height:
951280
Block id:
a1730f88faaddd98a86d4875cae7795c227ecd5ed7fb0e92e6666e5937279e4a
Timestamp:
Wednesday 6 March 2024 at 07:56:07 UTC
()
Proposer:
Authorizers:
Gas used:
0