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 Additional ERC-4337 Related Passkey Tests #417

Merged
merged 1 commit into from
May 13, 2024

Conversation

nlordell
Copy link
Collaborator

Follow up to #415

Now that we officially tagged the launchpad as "experimental", the module was missing unit and E2E tests demonstrating the "officially" supported way to use passkeys over ERC-4337. This PR adds both a unit test that a user operation with a passkey owner can be executed over the ERC-4337 reference entrypoint, as well as a local bundler test to ensure that no bundler rules are violated by the passkey signers.

@nlordell nlordell requested a review from a team as a code owner May 10, 2024 14:55
@nlordell nlordell requested review from akshay-ap, mmv08 and remedcu and removed request for a team May 10, 2024 14:55
@@ -175,78 +174,6 @@ describe('Safe4337Module', () => {
expect(await safeInstance.getOwners()).to.deep.equal([signerAddress])
})
})

describe('executeUserOp - existing account', () => {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This test wasn't actually removed, just moved to modules/passkey/test/4337/SafeWebAuthnSigner.spec.ts as it is unrelated to the launchpad and was in the wrong place to begin with.

Conceptually, there are no "executeUserOp - existing account" tests for the launchpad, as it is only ever used for account creation.

@coveralls
Copy link

coveralls commented May 10, 2024

Pull Request Test Coverage Report for Build 9062441004

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 9062434018: 0.0%
Covered Lines: 147
Relevant Lines: 147

💛 - Coveralls

@nlordell nlordell force-pushed the 409/additional-tests-and-userstories branch from c0e2a14 to 2b17cd8 Compare May 13, 2024 11:51
Base automatically changed from 409/additional-tests-and-userstories to main May 13, 2024 11:57
Follow up to #415

Now that we officially tagged the launchpad as "experimental", the
module was missing unit and E2E tests demonstrating the "officially"
supported way to use passkeys over ERC-4337. This PR adds both a unit
test that a user operation with a passkey owner can be executed over the
ERC-4337 reference entrypoint, as well as a local bundler test to ensure
that no bundler rules are violated by the passkey signers.
@nlordell nlordell merged commit 8a90660 into main May 13, 2024
10 checks passed
@nlordell nlordell deleted the 409/additional-4337-tests branch May 13, 2024 12:06
@github-actions github-actions bot locked and limited conversation to collaborators May 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants