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

#7608: Fix evmtool JSON Error Field to Return Hex String Instead of Long Null #7774

Merged
merged 3 commits into from
Oct 28, 2024

Conversation

itfat
Copy link
Contributor

@itfat itfat commented Oct 15, 2024

PR description

Modified the logic in evmtool to check if a revert reason is present and convert it to a hex string. Modified revertReason to hex string in EvmToolCommand and EvmToyCommand as well.

Fixed Issue(s)

fixes #7608

Thanks for sending a pull request! Have you done the following?

  • Checked out our contribution guidelines?
  • Considered documentation and added the doc-change-required label to this PR if updates are required.
  • Considered the changelog and included an update if required.
  • For database changes (e.g. KeyValueSegmentIdentifier) considered compatibility and performed forwards and backwards compatibility tests

Locally, you can run these tests to catch failures early:

  • unit tests: ./gradlew build
  • acceptance tests: ./gradlew acceptanceTest
  • integration tests: ./gradlew integrationTest
  • reference tests: ./gradlew ethereum:referenceTests:referenceTests

…l String on REVERT

Signed-off-by: 7at <itisfor@outlook.com>
@macfarla
Copy link
Contributor

per https://eips.ethereum.org/EIPS/eip-3155 error is a hex string field, so this would bring besu into alignment with the EIP.

@macfarla macfarla enabled auto-merge (squash) October 28, 2024 04:58
@macfarla macfarla merged commit 42b3cd4 into hyperledger:main Oct 28, 2024
43 checks passed
JanetMo pushed a commit to JanetMo/besu that referenced this pull request Nov 17, 2024
…l String on REVERT (hyperledger#7774)

Signed-off-by: 7at <itisfor@outlook.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: Marlene Marz <m.marz@kabelmail.de>
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.

evmtool Returns Long Null String in JSON error Field When Executing REVERT
3 participants