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

refactor(tests): unify EOF return code constants #834

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

shemnon
Copy link
Collaborator

@shemnon shemnon commented Sep 24, 2024

πŸ—’οΈ Description

For EOF create and EXTCALL tests use the same return code constants for
success, failure, and revert values.

πŸ”— Related Issues

βœ… Checklist

  • All: Set appropriate labels for the changes.
  • All: Considered squashing commits to improve commit history.
  • All: Added an entry to CHANGELOG.md. skipped
  • All: Considered updating the online docs in the ./docs/ directory.
  • Tests: All converted JSON/YML tests from ethereum/tests have been added to converted-ethereum-tests.txt.
  • Tests: A PR with removal of converted JSON/YML tests from ethereum/tests have been opened.
  • Tests: Included the type and version of evm t8n tool used to locally execute test cases: e.g., ref with commit hash or geth 1.13.1-stable-3f40e65.
  • Tests: Ran mkdocs serve locally and verified the auto-generated docs for new tests in the Test Case Reference are correctly formatted.

Copy link
Member

@danceratopz danceratopz left a comment

Choose a reason for hiding this comment

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

Nice clean-up, really helps readability. Just one very pedantic naming nit below, please see if you agree.

It would be nice to make these values available in our framework libraries and use them consistently in all tests - I made a separate issue for that to not block this PR, cf #835.

@danceratopz danceratopz changed the title fix(tests) Unify EOF return code constants refactor(tests): unify EOF return code constants Sep 25, 2024
@danceratopz danceratopz added scope:tests Scope: Changes EL client test cases in `./tests` type:refactor Type: Refactor labels Sep 25, 2024
@shemnon shemnon force-pushed the eof/extcall_return_codes branch from 38d85eb to 66565b9 Compare September 26, 2024 02:02
For EOF create and EXTCALL tests use the same return code constants for
success, failure, and revert values.

Signed-off-by: Danno Ferrin <danno@numisight.com>
@shemnon shemnon force-pushed the eof/extcall_return_codes branch from 66565b9 to 5420cf7 Compare September 26, 2024 02:03
Copy link
Member

@danceratopz danceratopz left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks!

@danceratopz danceratopz merged commit 22c734a into ethereum:main Sep 26, 2024
4 checks passed
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:refactor Type: Refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants