Skip to content

Conversation

@smiasojed
Copy link
Collaborator

@smiasojed smiasojed commented Nov 6, 2025

Closes: #263

@smiasojed smiasojed marked this pull request as ready for review November 11, 2025 11:59
}

/// 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()
Copy link

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?

Copy link
Collaborator Author

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.

@filip-parity filip-parity self-requested a review November 18, 2025 12:16
@smiasojed smiasojed merged commit 9d61e3d into master Nov 18, 2025
128 of 151 checks passed
@smiasojed smiasojed deleted the sm/state-migration branch November 18, 2025 15:02
@smiasojed smiasojed restored the sm/state-migration branch November 18, 2025 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[State & Storage translation] Migrate contracts and their storages

4 participants