Skip to content
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 AccessList to 1559 transaction rlp encoding #1992

Merged
merged 3 commits into from
Feb 13, 2024

Conversation

liewhite
Copy link
Contributor

@liewhite liewhite commented Dec 27, 2023

What does this PR do?

Add AccessList to 1559 transaction

Where should the reviewer start?

org.web3j.crypto.transaction.type.Transaction1559

Why is it needed?

#1991
It's an omission in web3j

@liewhite liewhite requested a review from conor10 as a code owner December 27, 2023 09:40
@gtebrean
Copy link
Contributor

gtebrean commented Jan 4, 2024

Hey @liewhite your PR is really useful, in order to can merge it could you please fix the build issues by fixing the tests? thanks

Signed-off-by: Nischal Sharma <nischal@web3labs.com>
Copy link

codecov bot commented Jan 17, 2024

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (4b583dd) 68.69% compared to head (53c8ae2) 68.61%.
Report is 2 commits behind head on master.

Files Patch % Lines
...web3j/crypto/transaction/type/Transaction1559.java 50.00% 5 Missing ⚠️
...src/main/java/org/web3j/crypto/RawTransaction.java 66.66% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1992      +/-   ##
============================================
- Coverage     68.69%   68.61%   -0.09%     
+ Complexity     3041     3040       -1     
============================================
  Files           490      490              
  Lines         12715    12726      +11     
  Branches       1653     1653              
============================================
- Hits           8735     8732       -3     
- Misses         3497     3509      +12     
- Partials        483      485       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

return chainId;
@Override
public BigInteger getGasPrice() {
throw new UnsupportedOperationException("not available for 1559 transaction");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be nice to have a test case for this

Comment on lines +47 to +50
super(chainId, nonce, null, gasLimit, to, value, data, Collections.emptyList());
this.maxPriorityFeePerGas = maxPriorityFeePerGas;
this.maxFeePerGas = maxFeePerGas;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even if it looks simple a test case will be worth here, also will improve the test coverage

@NickSneo NickSneo merged commit 01c003f into hyperledger-web3j:master Feb 13, 2024
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants