Merged
Conversation
66b2342 to
e130c26
Compare
2c0417e to
4c1e10c
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #320 +/- ##
==========================================
+ Coverage 99.53% 99.57% +0.03%
==========================================
Files 79 81 +2
Lines 4964 5354 +390
==========================================
+ Hits 4941 5331 +390
Misses 23 23 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
3c40b45 to
d69dc56
Compare
q9f
approved these changes
Apr 16, 2025
| case type | ||
| when TYPE_7702 | ||
|
|
||
| # EIP-1559 transaction (type 2) |
Owner
There was a problem hiding this comment.
nit:
Suggested change
| # EIP-1559 transaction (type 2) | |
| # EIP-7702 transaction (type 4) |
| # types and envelopes. | ||
| # Ref: https://eips.ethereum.org/EIPS/eip-7702 | ||
| class Eip7702 | ||
| class Authorization |
| # Ref: https://eips.ethereum.org/EIPS/eip-7702 | ||
| class Eip7702 | ||
| class Authorization | ||
| attr_reader :chain_id |
| class Authorization | ||
| attr_reader :chain_id | ||
|
|
||
| attr_reader :address |
|
|
||
| attr_reader :address | ||
|
|
||
| attr_reader :nonce |
| return hash | ||
| end | ||
|
|
||
| def unsigned_encoded |
| Rlp.encode authorization_data | ||
| end | ||
|
|
||
| def unsigned_hash |
| Util.keccak256 unsigned_encoded | ||
| end | ||
|
|
||
| def raw |
| authorization_data | ||
| end | ||
|
|
||
| def ==(o) |
|
|
||
| # ensure sane values for all mandatory fields | ||
| fields = Tx.validate_params fields | ||
| fields = Tx.validate_eip1559_params fields |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add support for EIP-7702 transactions following the approach used by 1559. Fixes #321
Adds a new EIP-7702 class, including an authorization nested class.