-
Notifications
You must be signed in to change notification settings - Fork 6
Add bidirectional contracts state migration #390
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
Conversation
| } | ||
|
|
||
| /// Applies REVM storage diffs to pallet-revive (REVM → pallet-revive sync) | ||
| /// Note: Balance/nonce are NOT synced here as they're handled by migration in select_revive() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm a bit confused as to why not migrate Balance and Nonce anyways?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to sync it in vm.pvm(true/false) anyway, since it may be modified using cheatcodes. If we want to drop syncing when switching VMs, we also need to sync cheatcode execution between VMs, what we do not do it currently.
Closes: #263