Flow price: --
2e8ddcea51e61c973cb200ccf626fb7ffba0177075c571efdc9975373cca90c3

Transaction

Hash: 2e8ddcea51e61c973cb200ccf626fb7ffba0177075c571efdc9975373cca90c3
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`
  --> 2e8ddcea51e61c973cb200ccf626fb7ffba0177075c571efdc9975373cca90c3:27:15
   |
27 |             if lockedHolder.check() {
   |                ^^^^^^^^^^^^ not found in this scope

error: cannot find variable in this scope: `flowToken`
  --> 2e8ddcea51e61c973cb200ccf626fb7ffba0177075c571efdc9975373cca90c3: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`
  --> 2e8ddcea51e61c973cb200ccf626fb7ffba0177075c571efdc9975373cca90c3: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`
  --> 2e8ddcea51e61c973cb200ccf626fb7ffba0177075c571efdc9975373cca90c3: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
  --> 2e8ddcea51e61c973cb200ccf626fb7ffba0177075c571efdc9975373cca90c3: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
  --> 2e8ddcea51e61c973cb200ccf626fb7ffba0177075c571efdc9975373cca90c3:39:12
   |
39 |             signer.capabilities.publish(stakingCollectionCap, at: StakingCollectionPublicPath)
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^

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


Hash:
2e8ddcea51e61c973cb200ccf626fb7ffba0177075c571efdc9975373cca90c3
Status:
ERROR
Block height:
952480
Block id:
5212dcae12ea882a503fa5ab70ad158da1f31de2feb8b4b68010785a442e6908
Timestamp:
Wednesday 6 March 2024 at 08:08:08 UTC
()
Proposer:
Authorizers:
Gas used:
0