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

♻️ Added Test for EntryPoint & Fix Issues #29

Merged
merged 4 commits into from
Feb 18, 2025
Merged

♻️ Added Test for EntryPoint & Fix Issues #29

merged 4 commits into from
Feb 18, 2025

Conversation

atarpara
Copy link
Collaborator

Summary:

  • Added test cases for Entrypoint :
    • Sponsored transactions
    • Batch calls
    • Relayer receiving sufficient funds for gas payment
    • Edge cases related to gas
    • Refund calculation

Fix Issue:

  1. Fixed Entrypoint._verify() signature length
  2. Fix wrong error message

@atarpara atarpara requested a review from Vectorized February 13, 2025 13:13
@jenpaff jenpaff linked an issue Feb 13, 2025 that may be closed by this pull request
Copy link
Contributor

@onbjerg onbjerg left a comment

Choose a reason for hiding this comment

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

this is pretty good although i'd love if we also had tests where the signature isnt just rsv since that only works for the eoa root key as far as i understand. i.e. if we had tests for a secp256k1 key that doesnt recover to address(eoa). same with p256 and p256webauthn (although i guess the last one is pretty hard to achieve in solidity?)

@atarpara
Copy link
Collaborator Author

this is pretty good although i'd love if we also had tests where the signature isnt just rsv since that only works for the eoa root key as far as i understand. i.e. if we had tests for a secp256k1 key that doesnt recover to address(eoa). same with p256 and p256webauthn (although i guess the last one is pretty hard to achieve in solidity?)

Added P256 & secp256k1 separate testcases. While p256webauthn is hard to test in solidity working on it.

@jenpaff jenpaff requested a review from gakonst February 18, 2025 10:08
* Added accounts nonce in entryPoint

* Storage of failuer err msg

* 2d Nonce in delegation

* Fix Nonce Issue in Entrypoint

* Fix OOG tests

* T

* T

* Tidy the 63/64 check

* ♻️ Normify EntryPoint (#32)

---------

Co-authored-by: Vectorized <[email protected]>
@Vectorized
Copy link
Collaborator

I think let's merge this to main for now. We can revert if something goes wrong.

After this is merged, I'll make the PR for the new upgradable proxy.

@Vectorized Vectorized merged commit 1b775d1 into main Feb 18, 2025
@Vectorized Vectorized deleted the test branch February 18, 2025 23: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.

Fuzz / invariant tests
3 participants