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

Bugfix: if returndatacopy is len 0 return after initial cost #259

Merged
merged 2 commits into from Nov 12, 2022
Merged

Bugfix: if returndatacopy is len 0 return after initial cost #259

merged 2 commits into from Nov 12, 2022

Conversation

gd-0
Copy link
Contributor

@gd-0 gd-0 commented Nov 11, 2022

Fixes this issue: #255 "Tx unexpectedly reverts with "out of gas" reason"

@rakita
Copy link
Member

rakita commented Nov 11, 2022

unrelated eth test is failing that is merged yesterday: https://github.com/ethereum/tests/blob/639af20dfbe961376d75ce3596182a777d02c417/src/GeneralStateTestsFiller/stTransactionTest/HighGasPriceFiller.yml#L1

it is edge case where gas_price is a big number.

edit: revm does return OverflowPayment error, but this does not match with test specific exception, this is more test related then a issue.
exception: https://github.com/ethereum/tests/blob/639af20dfbe961376d75ce3596182a777d02c417/GeneralStateTests/stTransactionTest/HighGasPrice.json#L26

@rakita rakita merged commit f462f9d into bluealloy:main Nov 12, 2022
rakita added a commit that referenced this pull request Nov 12, 2022
* bugfix: if returndatacopy is len 0 return after initial cost

* move len validation

Co-authored-by: rakita <dragan0rakita@gmail.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.

None yet

2 participants