Skip to content

refactor(tests): encode z, y as big-endian in test_point_eval_gas#2960

Merged
marioevz merged 1 commit into
ethereum:forks/amsterdamfrom
Thegaram:fix-encoding-in-test_point_evaluation_precompile_gas
Jun 9, 2026
Merged

refactor(tests): encode z, y as big-endian in test_point_eval_gas#2960
marioevz merged 1 commit into
ethereum:forks/amsterdamfrom
Thegaram:fix-encoding-in-test_point_evaluation_precompile_gas

Conversation

@Thegaram

@Thegaram Thegaram commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

🗒️ Description

This is just a nitpick fix to the tests.

The EIP-4844 point-evaluation precompile z and y inputs are supposed to be encoded big-endian, but test_point_evaluation_precompile_gas uses little-endian. For this gas test, this doesn't make a difference, but I found it confusing.

Changed it to use Z_Y_VALID_ENDIANNESS instead, consistent with test_point_evaluation_precompile.py.

🔗 Related Issues or PRs

N/A.

✅ Checklist

  • All: Ran fast static checks to avoid unnecessary CI fails, see also Code Standards and Enabling Pre-commit Checks:
    just static
  • All: PR title adheres to the repo standard - it will be used as the squash commit message and should start type(scope):.
  • All: Considered updating the online docs in the ./docs/ directory.
  • All: Set appropriate labels for the changes (only maintainers can apply labels).
  • Tests: Ran mkdocs serve locally and verified the auto-generated docs for new tests in the Test Case Reference are correctly formatted.
  • Tests: For PRs implementing a missed test case, update the post-mortem document to add an entry the list.
  • Ported Tests: All converted JSON/YML tests from ethereum/tests or tests/static have been assigned @ported_from marker.

Cute Animal Picture

@codecov

codecov Bot commented Jun 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.50%. Comparing base (6137bb3) to head (1ae3632).
⚠️ Report is 7 commits behind head on forks/amsterdam.

Additional details and impacted files
@@               Coverage Diff                @@
##           forks/amsterdam    #2960   +/-   ##
================================================
  Coverage            90.50%   90.50%           
================================================
  Files                  535      535           
  Lines                32407    32407           
  Branches              3011     3011           
================================================
  Hits                 29331    29331           
  Misses                2559     2559           
  Partials               517      517           
Flag Coverage Δ
unittests 90.50% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@marioevz marioevz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice catch, thanks! Explanation to why was it passing regardless is due to the zero being encoded the same regardless of the endianness, and any Z passes when Y is zero.

@marioevz marioevz merged commit 84e39e1 into ethereum:forks/amsterdam Jun 9, 2026
18 checks passed
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