F
Flow8mo 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
Needle8mo 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
joshuaOP8mo 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 User8mo ago
Message Not Public
Sign In & Join Server To View
joshua
joshuaOP8mo ago
so just use --skip-validation?
Unknown User
Unknown User4mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server