Skip to content

refactor(spec-specs): move REFUND_AUTH and TX_MAX_GAS_LIMIT into GasCosts - #3534

Open
shubham5080 wants to merge 1 commit into
ethereum:forks/amsterdamfrom
shubham5080:chore/2680-move-gas-constants
Open

refactor(spec-specs): move REFUND_AUTH and TX_MAX_GAS_LIMIT into GasCosts#3534
shubham5080 wants to merge 1 commit into
ethereum:forks/amsterdamfrom
shubham5080:chore/2680-move-gas-constants

Conversation

@shubham5080

@shubham5080 shubham5080 commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Description

Moves REFUND_AUTH_PER_EXISTING_ACCOUNT and TX_MAX_GAS_LIMIT into GasCosts so they live with the other gas constants (same direction as #2396).

  • REFUND_AUTH_PER_EXISTING_ACCOUNTGasCosts in Prague through BPO5 (Amsterdam no longer has this refund under EIP-2780)
  • TX_MAX_GAS_LIMITGasCosts in Osaka through Amsterdam
  • Call sites updated; transactions.validate_transaction uses a local import to avoid circular imports with vm.gas

Fresh take on closed #2700 against current forks/amsterdam.

Related Issues or PRs

Fixes #2680

Checklist

  • Ran fast static checks to avoid CI fails: just static
  • PR title has the form <type>(<area>): <title>

Cute Animal Picture

red panda

…osts

Place gas-related constants with the other GasCosts values for consistency
across Prague through Amsterdam, following the ethereum#2396 gas-module pattern.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

Move REFUND_AUTH_PER_EXISTING_ACCOUNT and TX_MAX_GAS_LIMIT with other gas constants

1 participant