-
Notifications
You must be signed in to change notification settings - Fork 143
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: access list support for signature calculation #17389
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: michal.myslinski <[email protected]>
Signed-off-by: Mariusz Jasuwienas <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #17389 +/- ##
============================================
+ Coverage 64.09% 68.91% +4.81%
- Complexity 20729 22676 +1947
============================================
Files 2543 2613 +70
Lines 95454 97907 +2453
Branches 9993 10160 +167
============================================
+ Hits 61185 67475 +6290
+ Misses 30664 26613 -4051
- Partials 3605 3819 +214
|
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferencesCodacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more |
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.
Have a question about EthTxData.equals
and also a suggestion about additional unit tests.
hedera-node/hapi-utils/src/main/java/com/hedera/node/app/hapi/utils/ethereum/EthTxSigs.java
Show resolved
Hide resolved
hedera-node/hapi-utils/src/test/java/com/hedera/node/app/hapi/utils/ethereum/EthTxDataTest.java
Show resolved
Hide resolved
hedera-node/hapi-utils/src/main/java/com/hedera/node/app/hapi/utils/ethereum/EthTxData.java
Show resolved
Hide resolved
…equals method, adding new tests for the access list rlp (#17040) Signed-off-by: Mariusz Jasuwienas <[email protected]>
#17040) Signed-off-by: Mariusz Jasuwienas <[email protected]>
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!
Description:
When sending transaction with access list the public key and the address of the transaction sender is not properly calculated and it results in error for example of INVALID_ACCOUNT_ID. We added changes in EthTxData.java and EthTxSigs.java to fix this behaviour by firstly read accessList as object of RLPList instance and put it different variable accessListAsRLP. If this variable is present we transform it to array of Object containing byte array and then we add this to RLPEncoder.
We also put unit tests to check if now transactions on which we found this error are now calculating proper signature.
Related issue(s):
#17040
Notes for reviewer:
Checklist