F
Flow13mo ago
joshua

joshua | Flow (2024-04-17)

When staging a contract with the CLI staging tool, does it validate that the migration will be correct also in addition to just doing the regular static checking? I'm trying to stage the FlowStakingCollection contract, which deploys and works properly when testing with the C1.0 emulator, but when I try to stage it on testnet, I get an error. 🧵
5 Replies
Needle
Needle13mo 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
joshuaOP13mo ago
❌ error: cannot access `borrowTokenManager`: function requires `account` authorization
--> ./contracts/FlowStakingCollection.cdc:155:41
|
155 | let lockedTokenManager = tokenHolderObj.borrow()!.borrowTokenManager()
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
❌ error: cannot access `borrowTokenManager`: function requires `account` authorization
--> ./contracts/FlowStakingCollection.cdc:155:41
|
155 | let lockedTokenManager = tokenHolderObj.borrow()!.borrowTokenManager()
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
joshua
joshuaOP13mo ago
so just use --skip-validation?
Unknown User
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?