-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mainnet state migration crashes on preview.22 build #3287
Comments
Looks like the staging account storage for MN is not found? The address is correct though: https://contractbrowser.com/account/0x56100d46aa9b0212 |
Yeah, we should maybe check if https://f.dnz.dev/56100d46aa9b0212 shows there are staged contracts in storage. @sisyphusSmiling Can you confirm this is the correct account on MN? |
oh hang on:
The migration has picked the wrong address |
@j1010001 can you maybe double-check/re-run the command with |
Oh, good catch! @onflow/flow-cadence-execution Is there any way to check that the chain ID flag matches the chain ID of the state, or even better, can we maybe just remove the chain ID flag and use the state's flag? The flag has been brittle, mixups like this have happened before. |
I have noticed I also had the --chain flow-testnet flag in the atree register inlining migration - @fxamacker is it used there ? I am guessing it isn't as the migration completed successfully, but let me know if you think it makes the migrated state invalid for some reason and I can re-run both. |
@j1010001 Yes, |
Closing the issue - the crash was caused by using wrong --chain parameter on Mainnet state migration. |
I was looking into removing the chainID parameter and it looks like that might complicate things and make the migrations longer (because it wouldn't be available without reading the service account from the state). However I think we could still add a check somewhere deeper in (perhaps into the first migration) that the addresses are valid for the chainID provided. This way we would fail faster in the case of specifying the incorrect chainID. |
@janezpodhostnik Thank you for looking into it! Yeah, we don't necessarily have to remove it, checking if it is correct as early as possible is also great. Would you be able to add that? |
Yes I can add that. I'll connect it to this issue. |
@janezpodhostnik Any update here? (No rush) |
Sorry, not yet. This is currently 2nd I'm my priority list. |
Closing, I opened #3335 for the remaining task |
Migration doc: https://www.notion.so/flowfoundation/MN-state-migration-test-3-Atree-inlining-C1-0-Apr-25-preview-14-5fdc4a3e89a64ed2ae2212a37bb950b6
Error:
The text was updated successfully, but these errors were encountered: