[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
Happy diving into the flow Remember to upgrade your contracts to 1.0!