-
Notifications
You must be signed in to change notification settings - Fork 492
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
internal/ethapi: fix signer in GetTransactionReceiptsByBlock method #1107
internal/ethapi: fix signer in GetTransactionReceiptsByBlock method #1107
Conversation
HI @marcello33, Please PR review. |
Hey @bbaktaeho, I triggered the CI run. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #1107 +/- ##
===========================================
- Coverage 56.00% 55.96% -0.04%
===========================================
Files 658 658
Lines 114473 114470 -3
===========================================
- Hits 64108 64067 -41
- Misses 46506 46547 +41
+ Partials 3859 3856 -3 ☔ View full report in Codecov by Sentry. |
@marcello33, I have written unit test codes for several transaction types. |
Ok, thanks. |
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. Thanks!
Description
In
GetTransactionReceiptsByBlock
, the valuefrom
is sometimes zero address. Therefore, I changed the code that creates the signer by referring to the code implemented inGetTransactionReceipt
.Looking at the code, only the signer of legacy transaction with type 0 is being made.
The block used as an example:
blockNumber - 51178987
rpc - eth_getTransactionReceiptsByBlock
result (transactionHash, from, to)
All transactions in issues are the receipt of the EIP-1559 transaction (type=0x2).
Changes
Breaking changes
Please complete this section if any breaking changes have been made, otherwise delete it
Nodes audience
In case this PR includes changes that must be applied only to a subset of nodes, please specify how you handled it (e.g. by adding a flag with a default value...)
Checklist
Cross repository changes
Testing
Manual tests
Please complete this section with the steps you performed if you ran manual tests for this functionality, otherwise delete it
Additional comments
Please post additional comments in this section if you have them, otherwise delete it