You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With K1 signer support added to the smart account, it should be possible to sign smart account transactions via Metamask.
However, zksync-ethers SDK's class SmartAccount provides an incorrect signature for its payloadSigner hook: it accepts a hash, whereas metamask expects an unhashed message (and hence hashes it again).
This makes it impossible to use external signers such as metamask with SmartAccount class.
The task is to fix it and test if it works.
The text was updated successfully, but these errors were encountered:
ly0va
changed the title
Update zksync SDK to support signing smart account transactions via external signers (e.g. Metamask)
Update zksync-ethers SDK to support signing smart account transactions via external signers (e.g. Metamask)
Oct 16, 2024
With K1 signer support added to the smart account, it should be possible to sign smart account transactions via Metamask.
However,
zksync-ethers
SDK's classSmartAccount
provides an incorrect signature for itspayloadSigner
hook: it accepts a hash, whereas metamask expects an unhashed message (and hence hashes it again).This makes it impossible to use external signers such as metamask with
SmartAccount
class.The task is to fix it and test if it works.
The text was updated successfully, but these errors were encountered: