safe-global / safe-core-sdk

The Safe{Core} SDK allows builders to add account abstraction functionality into their apps.
https://docs.safe.global/sdk/overview
MIT License
242 stars 177 forks source link

[Passkeys] 4337 gas estimation not working #849

Closed dasanra closed 2 weeks ago

dasanra commented 2 weeks ago

Context / issue

Passkeys + 4337 gas estimation is not working as expected when using sponsored transactions. We need to provide a dummy passkey signature in order to get the estimation to trigger the signing logic

Proposed solution

It should be possible to use 4337 sponsored transactions when a passkey is used as a signer. As the gas gets estimated by the paymaster and it's not allowing to suggest any changes after, it needs to simulate the passkey flow correctly.