safe-global / safe-modules

A collection of modules that can be used with the Safe contract
GNU Lesser General Public License v3.0
149 stars 74 forks source link

Promote Shared Singleton Signer Implementation #413

Closed nlordell closed 5 months ago

nlordell commented 6 months ago

This PR promotes the shared singleton signer implementation to the 4337 directory instead of being a "test" contract. This involves:

I also took this opportunity to rename it to a "shared" signer instead of "singleton" signer, so that it does not get confused with the other singleton contract (the SafeWebAuthnSignerSingleton) that already exists in this repository.

Additionally, I moved some of the test files around in order to clearly differentiate between E2E tests and unit tests in the test/4337 directory.

Unit tests for 100% coverage of the SafeWebAuthnSharedSigner will be added in a follow up PR.

coveralls commented 5 months ago

Pull Request Test Coverage Report for Build 9062104545

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
modules/passkey/contracts/4337/SafeWebAuthnSharedSigner.sol 1 15 6.67%
<!-- Total: 1 15 6.67% -->
Totals Coverage Status
Change from base Build 9031345321: -8.4%
Covered Lines: 122
Relevant Lines: 147

💛 - Coveralls
nlordell commented 5 months ago

I suspect there was a small change in comments or something related to the rebase. I created a GH issue to track this, so we can redeploy the contracts once the audit is complete (as the addresses may change yet again when we incorporate audit comments):

https://github.com/safe-global/safe-modules/issues/418