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

chore: bump alloy-eip7702 #1829

Merged
merged 4 commits into from
Oct 23, 2024
Merged

Conversation

klkvr
Copy link
Collaborator

@klkvr klkvr commented Oct 22, 2024

alloy-eip7702 now has logic for authority recovery implemented as it should happen in EVM https://github.com/alloy-rs/eips/blob/e712799f4318634bc978d0749cfcd59ff9a59459/crates/eip7702/src/auth_list.rs#L234

This PR updates it to latest version and replaces RecoveredAuthority type with one from alloy-eip7702.

There's also now no need for authority list validity check as this is done on decoding

@klkvr
Copy link
Collaborator Author

klkvr commented Oct 22, 2024

@rakita tests are failing on release/v47 branch even before my commits, so I guess this is fine?

@rakita
Copy link
Member

rakita commented Oct 23, 2024

@rakita tests are failing on release/v47 branch even before my commits, so I guess this is fine?

Let me check what is going on, I didn't check it previously as it was just a primitive bump.

Will minimize this change as this is side branch and alloy-eip7702 dep will be removed in future.

Copy link
Member

@rakita rakita left a comment

Choose a reason for hiding this comment

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

On second look, this look good

@@ -115,9 +115,8 @@ pub fn apply_eip7702_auth_list<SPEC: Spec, EXT, DB: Database>(
let mut refunded_accounts = 0;
for authorization in authorization_list.recovered_iter() {
// 1. Verify the chain id is either 0 or the chain's current ID.
if !authorization.chain_id() == 0
Copy link
Member

Choose a reason for hiding this comment

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

There was a bug here, !chain_Id would be a bitwise operation.

@rakita rakita merged commit e682da7 into bluealloy:release/v47 Oct 23, 2024
22 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.

2 participants