Skip to content
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

fix(revm): increment nonce of EIP-2935 account #8252

Merged
merged 1 commit into from
May 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions crates/revm/src/state_change.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ where
let mut account = Account::from(AccountInfo::default());

// HACK(onbjerg): This is a temporary workaround to make sure the account does not get cleared
// by state clearing later. This balance will likely be present in the devnet 0 genesis file
// by state clearing later. This nonce will likely be present in the devnet 0 genesis file
// until the EIP itself is fixed.
account.info.balance = U256::from(1);
account.info.nonce = 1;

// We load the `HISTORY_STORAGE_ADDRESS` account because REVM expects this to be loaded in order
// to access any storage, which we will do below.
Expand Down Expand Up @@ -311,7 +311,7 @@ where
// get previous env
let previous_env = Box::new(evm.context.env().clone());

// modify env for pre block call
// modify env for post block call
fill_tx_env_with_withdrawal_requests_contract_call(&mut evm.context.evm.env);

let ResultAndState { result, mut state } = match evm.transact() {
Expand Down
Loading