-
Notifications
You must be signed in to change notification settings - Fork 733
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
Add revert reason to eth_estimateGas RPC call error #1730
Add revert reason to eth_estimateGas RPC call error #1730
Conversation
6558049
to
e061bf0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also needs unit tests. Try these two files: https://gist.github.com/shemnon/6f3b58798d3bea1a2b299d59475e9758
Because revert is not a frontier feature you will need to probably put them in with the trace tests ethereum/api/src/test/resources/org/hyperledger/besu/ethereum/api/jsonrpc/trace/specs - create a new directory and add that new directory here -
Line 47 in 01c02e0
"trace/specs/trace-block", |
The ordinary jsonrpc tests are all frontier fork and the test .blocks file is fairly opaque, not sure how to re-genreate it on a different fork.
...src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/methods/EthEstimateGas.java
Show resolved
Hide resolved
349eff0
to
61d7428
Compare
Signed-off-by: Vladyslav Lupashevskyi <vlad@lupashevskyi.com>
Signed-off-by: Vladyslav Lupashevskyi <vlad@lupashevskyi.com>
Signed-off-by: Vladyslav Lupashevskyi <vlad@lupashevskyi.com>
61d7428
to
9eeacd9
Compare
@shemnon Thank you for your review and files for tests! Here I prepared tests, but decided not to add them directly to |
Add revert reason to eth_estimateGas RPC call error Signed-off-by: Vladyslav Lupashevskyi <vlad@lupashevskyi.com>
PR description
Here I added revert reason to the
data
field of eth_estimateGas rpc error.The error looks as shown here:
Fixed Issue(s)
fixes #1207
Changelog