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

feat(v2): 4337 v0.7 updates #31

Merged
merged 1 commit into from
Mar 12, 2024
Merged

Conversation

jaypaik
Copy link
Collaborator

@jaypaik jaypaik commented Mar 7, 2024

  • Updated .gitmodules to track valid release branches
    • Updated eth-infinitism/account-abstraction to track branch releases/v0.7 (commit 7af70c8993a6f42973f520ae0752386a5032abe7)
    • Updated OZ to 5.0 to match the version that eth-infinitism/account-abtraction@releases/v0.7 uses (commit dbb6104ce834628e473d2173bbc9d47f81a9eec3)
    • Updated forge-std to track the branch v1 so that forge update works properly (commit ae570fec082bfe1c1f45b0acca4a2b4f84d345ce)
  • Replaced usage of UserOperation with PackedUserOperation
  • Some updates related to OZ 5.0
  • Bumped Solidity version to 0.8.23 to match eth-infinitism/account-abtraction@releases/v0.7

Intentionally haven't updated the deploy script yet. Will do that after all v2 changes are in.

@jaypaik jaypaik requested a review from adam-alchemy March 7, 2024 01:00
@jaypaik jaypaik changed the title feat: 4337 v0.7 updates feat(v2): 4337 v0.7 updates Mar 7, 2024
@jaypaik jaypaik force-pushed the 03-06-feat_4337_v0.7_updates branch from 0fb85c6 to 4b1bb9d Compare March 10, 2024 20:44
@jaypaik jaypaik force-pushed the 03-06-feat_4337_v0.7_updates branch from 4b1bb9d to dea597b Compare March 10, 2024 20:53
Copy link
Contributor

@adam-alchemy adam-alchemy left a comment

Choose a reason for hiding this comment

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

Looks good, one small nit on the test.

@@ -282,10 +284,10 @@ contract LightAccountTest is Test {
keccak256(
abi.encodePacked(
type(LightAccountFactory).creationCode,
bytes32(uint256(uint160(0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789)))
bytes32(uint256(uint160(0x0000000071727De22E5E9d8BAf0edAc6f37da032)))
Copy link
Contributor

Choose a reason for hiding this comment

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

We can replace this line with just abi.encode(<EntryPoint address>) to avoid dealing with the type conversions.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ack, will fix up the stack.

@jaypaik jaypaik merged commit 312503c into develop Mar 12, 2024
2 checks passed
@jaypaik jaypaik deleted the 03-06-feat_4337_v0.7_updates branch March 12, 2024 14:41
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