Skip to content

fix: gate EIP-7702 auth nonce gas to T1 - #4560

Closed
legion2002 wants to merge 1 commit into
mainfrom
fix/eip7702-pre-t1-auth-gas
Closed

fix: gate EIP-7702 auth nonce gas to T1#4560
legion2002 wants to merge 1 commit into
mainfrom
fix/eip7702-pre-t1-auth-gas

Conversation

@legion2002

Copy link
Copy Markdown
Contributor

Summary

  • gate the extra EIP-7702 auth.nonce == 0 account-creation surcharge to T1+
  • add a pre-T1 EIP-7702 regression test so historical reexecution does not overcharge 25,000 gas

Context

The reexecute workflow failed on Moderato block 547791 for tx 0xb97b5b33ed8727d8202ba099821ab6799ecf4b99321e2e89aabb71585f942f8d with a +25,000 gas mismatch. That block is pre-T1, but the revm bump migration started using GasId::new_account_cost() for authorizationList entries with nonce == 0; unlike the old Tempo-specific auth account gas id, that value is nonzero pre-T1.

Tests

  • cargo test -p tempo-revm test_pre_t1_eip7702_auth_nonce_zero_skips_tip1000_surcharge
  • cargo test -p tempo-revm test_state_gas_standard_tx_nonce_zero
  • cargo test -p tempo-revm

@0xrusowsky 0xrusowsky left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense, pending re-execution tests to pass

@legion2002

legion2002 commented May 28, 2026

Copy link
Copy Markdown
Contributor Author

closed in favour of #4561

@legion2002 legion2002 closed this May 28, 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.

2 participants