F
Flow10mo ago
joshua

joshua | Flow (2024-04-18)

Anyone know what these error mean when migrating the LockedTokens and FlowStakingCollection contracts?
error: expected token '&'
--> 95e019a17d0e23d7.LockedTokens:94:46
|
94 | access(all) var vault: Capability<auth(FungibleToken.Withdraw) &FlowToken.Vault>
|
error: expected token '&'
--> 95e019a17d0e23d7.LockedTokens:94:46
|
94 | access(all) var vault: Capability<auth(FungibleToken.Withdraw) &FlowToken.Vault>
|
error: unexpected identifier
--> 95e019a17d0e23d7.FlowStakingCollection:43:13
|
43 | view init(nodeID: String, delegatorID: UInt32) {
|
error: unexpected identifier
--> 95e019a17d0e23d7.FlowStakingCollection:43:13
|
43 | view init(nodeID: String, delegatorID: UInt32) {
|
6 Replies
Needle
Needle10mo ago
I've created a thread for your message. Please continue any relevant discussion in this thread. You can rename this thread using /title <new title> If this is a technical question that others may benefit from, considering also asking it on Stackoverflow: https://stackoverflow.com/questions/ask?tags=onflow-cadence
joshua
joshuaOP10mo ago
it looks to me like it is a pre-1.0 version of Cadence trying to check the 1.0 versions of the contracts
turbolent
turbolent10mo ago
What do you mean with “migrating”? Locally trying the migration with the Emulator? What’s the command that reported these errors?
joshua
joshuaOP10mo ago
Sorry, these are the testnet migrations
turbolent
turbolent10mo ago
Oh you mean these errors are in the report of the last trial run to migrate TN state?
joshua
joshuaOP10mo ago
yeah

Did you find this page helpful?