Skip to content

Conversation

@marioevz
Copy link
Member

@marioevz marioevz commented Sep 2, 2025

🗒️ Description

Fixes an exception expectation on test_tx_intrinsic_gas.py.

Depending on the implementation, the client could hit TransactionException.INTRINSIC_GAS_BELOW_FLOOR_GAS_COST or TransactionException.INTRINSIC_GAS_TOO_LOW because both values, given the conditions, were equal.

🔗 Related Issues or PRs

N/A.

✅ Checklist

  • All: Ran fast tox checks to avoid unnecessary CI fails, see also Code Standards and Enabling Pre-commit Checks:
    uvx --with=tox-uv tox -e lint,typecheck,spellcheck,markdownlint
  • All: PR title adheres to the repo standard - it will be used as the squash commit message and should start type(scope):.
  • All: Considered adding an entry to CHANGELOG.md.
  • All: Considered updating the online docs in the ./docs/ directory.
  • All: Set appropriate labels for the changes (only maintainers can apply labels).

@marioevz marioevz added type:bug Something isn't working scope:tests Scope: Changes EL client test cases in `./tests` labels Sep 2, 2025
@marioevz marioevz requested a review from kclowes September 2, 2025 21:22
@marioevz
Copy link
Member Author

marioevz commented Sep 2, 2025

Cc @kclowes, I had time to check this today and put up a PR, just to not duplicate efforts.

Copy link
Collaborator

@kclowes kclowes left a comment

Choose a reason for hiding this comment

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

LGTM! 🚀

@marioevz marioevz merged commit e5698a4 into main Sep 3, 2025
16 checks passed
@marioevz marioevz deleted the fix-incorrect-exceptions branch September 3, 2025 17:21
@fselmo
Copy link
Collaborator

fselmo commented Sep 3, 2025

Ah nice. I was thinking something along these lines would be ideal since these are both "gas too low" paths, just one more specific than another. I think this approach makes sense 👌🏼

@Bartletti
Copy link

imageimage

Copy link

@Bartletti Bartletti left a comment

Choose a reason for hiding this comment

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

🦋image

@Bartletti
Copy link

Koło

@Bartletti
Copy link

Lolo

LouisTsai-Csie pushed a commit to LouisTsai-Csie/execution-spec-tests that referenced this pull request Sep 5, 2025
ethereum#2096)

* fix(tests): Incorrect expected exception on `tests/berlin/eip2930_access_list/test_tx_intrinsic_gas.py`

* fix: typing
kclowes pushed a commit to kclowes/execution-spec-tests that referenced this pull request Oct 20, 2025
ethereum#2096)

* fix(tests): Incorrect expected exception on `tests/berlin/eip2930_access_list/test_tx_intrinsic_gas.py`

* fix: typing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope:tests Scope: Changes EL client test cases in `./tests` type:bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants