-
Notifications
You must be signed in to change notification settings - Fork 75
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
[ETCM-126] getRawTransactionBy* #720
Conversation
e4a4c4c
to
79e3d9b
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.
Looks ok. Please add some examples to the insomnia workspace
src/main/scala/io/iohk/ethereum/jsonrpc/EthJsonMethodsImplicits.scala
Outdated
Show resolved
Hide resolved
src/main/scala/io/iohk/ethereum/jsonrpc/JsonRpcController.scala
Outdated
Show resolved
Hide resolved
@mmrozek insomnia JSON is updated. Nice catch thank you :) |
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!
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.
Minor things only. Overall looks good to me!
Please note though, that commit messages are usually prefixed with jira ticket, so they should be like [ETCM-126] <the message>
Some(JInt(1)) | ||
) | ||
|
||
val response = jsonRpcController.handleRequest(request).futureValue |
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.
there is set of additional matchers for rpc responses in io.iohk.ethereum.jsonrpc.JRCMatchers
, it allows to compare result only, so less boilerplate
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.
Custom marchers from JRCMatchers were used to simplify tests: 7bb0d21
…ionByBlockHashAndIndex
…ransactionXXX requests
…o ByteString to EthJsonMethodsImplicits from EthService
…ionByBlockNumberAndIndex
8f1bcd9
to
6912d15
Compare
I like that convention 👍 All commit were reworded to have [ETCM-126] prefix: https://github.com/input-output-hk/mantis/pull/720/commits |
If you renamed all commits you could squash all commit to one as well ;) |
Signed-off-by: lemastero <piotr.paradzinski@iohk.io>
@mmrozek How about making a squash on merge into develop branch? Pros:
Cons:
|
I prefer to use squash commits to merge. Especially in cases like this one, when you have a linear history |
Description
Add support for:
Proposed Solution
Important Changes Introduced
GetRawTransactionByHashRequest
GetRawTransactionByHashResponse
getRawTransactionByHash
in EthService, that reuse logic from existing:getTransactionByHash
, extracted common logic togetTransactionDataByHash
that returnsTransactionData
eth_getRawTransactionByHash
route JsonRpcControllergetRawTransactionByBlockHashAndIndexRequest
has different implementation than getTransactionByBlockHashAndIndexRequest, I needed signed transaction, please double check this logicTesting
It looks like it is not possible to write it rpcTest in
RpcApiTests
there is no getRawTransactionByHash in web3j Ethereum