-
Notifications
You must be signed in to change notification settings - Fork 267
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
feat(rpc): adds revert data to eth_call #2281
Conversation
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.
don't forget to pass this data
value to JsonError in RskErrorResolver
rskj-core/src/main/java/co/rsk/rpc/modules/eth/ProgramRevert.java
Outdated
Show resolved
Hide resolved
rskj-core/src/main/java/co/rsk/rpc/modules/eth/ProgramRevert.java
Outdated
Show resolved
Hide resolved
rskj-core/src/main/java/co/rsk/rpc/modules/eth/EthModuleTransactionInstant.java
Outdated
Show resolved
Hide resolved
rskj-core/src/main/java/co/rsk/rpc/modules/eth/ProgramRevert.java
Outdated
Show resolved
Hide resolved
rskj-core/src/main/java/org/ethereum/rpc/exception/RskJsonRpcRequestException.java
Outdated
Show resolved
Hide resolved
dbb850f
to
59e2713
Compare
rskj-core/src/test/java/org/ethereum/rpc/exception/RskErrorResolverTest.java
Fixed
Show fixed
Hide fixed
f7cbf04
to
d93b78a
Compare
rskj-core/src/main/java/org/ethereum/rpc/exception/RskErrorResolver.java
Fixed
Show fixed
Hide fixed
rskj-core/src/main/java/org/ethereum/rpc/exception/RskErrorResolver.java
Fixed
Show fixed
Hide fixed
rskj-core/src/main/java/org/ethereum/rpc/exception/RskErrorResolver.java
Fixed
Show fixed
Hide fixed
d93b78a
to
ac06f54
Compare
rskj-core/src/main/java/org/ethereum/rpc/exception/RskErrorResolver.java
Outdated
Show resolved
Hide resolved
rskj-core/src/main/java/org/ethereum/rpc/exception/RskJsonRpcRequestException.java
Show resolved
Hide resolved
rskj-core/src/main/java/co/rsk/rpc/modules/eth/ProgramRevert.java
Outdated
Show resolved
Hide resolved
rskj-core/src/main/java/org/ethereum/rpc/exception/handlers/DefaultRskErrorHandler.java
Fixed
Show fixed
Hide fixed
f65d4b8
to
6581123
Compare
0765896
to
6f801e1
Compare
pipeline:run |
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.
Good job!
I have few comments, if you have any doubt, let me know and I we disccuss it.
rskj-core/src/main/java/org/ethereum/rpc/exception/handlers/BaseRskErrorHandler.java
Outdated
Show resolved
Hide resolved
rskj-core/src/main/java/org/ethereum/rpc/exception/handlers/DefaultRskErrorHandler.java
Outdated
Show resolved
Hide resolved
rskj-core/src/main/java/org/ethereum/rpc/exception/RskJsonRpcRequestException.java
Outdated
Show resolved
Hide resolved
rskj-core/src/test/java/co/rsk/rpc/netty/JsonRpcCustomServerTest.java
Outdated
Show resolved
Hide resolved
rskj-core/src/test/java/co/rsk/rpc/netty/JsonRpcCustomServerTest.java
Outdated
Show resolved
Hide resolved
.../test/java/org/ethereum/rpc/exception/handlers/UnsupportedOperationExceptionHandlerTest.java
Outdated
Show resolved
Hide resolved
rskj-core/src/main/java/co/rsk/rpc/modules/eth/ProgramRevert.java
Outdated
Show resolved
Hide resolved
rskj-core/src/main/java/co/rsk/rpc/modules/eth/ProgramRevert.java
Outdated
Show resolved
Hide resolved
rskj-core/src/main/java/org/ethereum/rpc/exception/RskErrorResolver.java
Outdated
Show resolved
Hide resolved
e3de0a8
to
9ec43f0
Compare
rskj-core/src/main/java/co/rsk/rpc/modules/eth/ProgramRevert.java
Outdated
Show resolved
Hide resolved
rskj-core/src/main/java/co/rsk/rpc/modules/eth/ProgramRevert.java
Outdated
Show resolved
Hide resolved
rskj-core/src/main/java/co/rsk/rpc/modules/eth/ProgramRevert.java
Outdated
Show resolved
Hide resolved
rskj-core/src/main/java/co/rsk/rpc/modules/eth/EthModuleTransactionInstant.java
Outdated
Show resolved
Hide resolved
rskj-core/src/main/java/org/ethereum/rpc/exception/RskErrorResolver.java
Outdated
Show resolved
Hide resolved
rskj-core/src/main/java/co/rsk/rpc/modules/eth/ProgramRevert.java
Outdated
Show resolved
Hide resolved
rskj-core/src/main/java/org/ethereum/rpc/exception/RskErrorResolver.java
Outdated
Show resolved
Hide resolved
rskj-core/src/main/java/org/ethereum/rpc/exception/RskJsonRpcRequestException.java
Outdated
Show resolved
Hide resolved
rskj-core/src/main/java/co/rsk/rpc/modules/eth/ProgramRevert.java
Outdated
Show resolved
Hide resolved
pipeline:run |
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.
Nice, good job!
9ec43f0
to
8fd8de6
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.
LGTM
Here are some further improvement proposal
|
4055564
to
58fa81b
Compare
58fa81b
to
fad6deb
Compare
Quality Gate passedIssues Measures |
Adds revert data to the eth_call response if failed.
Description
ProgramRevert
class to combine revert reason and revert data.decodeProgramRevert
(formerlydecodeProgramRevertMessage
) to returnProgramRevert
RskJsonRpcRequestException
to acceptProgramRevert
test_revertedTransaction
to check for this revert dataMotivation and Context
How Has This Been Tested?
Types of changes
Checklist: