Skip to content

chore: revm 34 upgrade#2

Open
Jrigada wants to merge 5 commits intonish-zksync-os-revmfrom
revm-34-upgrade
Open

chore: revm 34 upgrade#2
Jrigada wants to merge 5 commits intonish-zksync-os-revmfrom
revm-34-upgrade

Conversation

@Jrigada
Copy link
Copy Markdown
Collaborator

@Jrigada Jrigada commented Jan 21, 2026

Breaking changes

CreateInputs API

  • Fields accessed via methods: inputs.caller → inputs.caller(), inputs.scheme(), inputs.value(), inputs.init_code(), inputs.gas_limit()
  • Setter renamed: inputs.caller = x → inputs.set_call(x)
  • Constructor: CreateInputs::new(caller, scheme, value, init_code, gas_limit)

AccountInfo

  • New field: account_id: None

CfgEnv / Spec

  • cfg.with_spec(spec) → cfg.with_spec_and_mainnet_gas_params(spec)

Account Storage Type

  • HashMap<Address, DbAccount> → AddressMap

JournaledAccountTr

  • Import required: use revm::context_interface::journaled_state::account::JournaledAccountTr
  • Account access via .data: state_acc.set_balance() → state_acc.data.set_balance()

Handler Trait

  • validate_initial_tx_gas(&Self::Evm) → validate_initial_tx_gas(&mut Self::Evm)

@Jrigada Jrigada changed the title Revm 34 upgrade chore: revm 34 upgrade Jan 21, 2026
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.

1 participant