[SDK] Question on the Design Choice of Signer Class in zkSync's ether SDK for MetaMask Integration #291
-
EnvironmentTestnet Acknowledgement
Issue DescriptionThe comment wrote a sample usage saying that this is for metamask injection. However, this signer inherits from jsonRpcSigner.
Expected Behaviorwrap abstract class Code Example
Repo Link (Optional) |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
The code that you are posting refers to
In |
Beta Was this translation helpful? Give feedback.
The code that you are posting refers to
zksync-ethers
based on theethers-v5
implementation. The links that you posted refer to theethers-v6
implementation. Just to make it clear, theethers-v5
implementation is available on thezksync-ethers
repository's ethers-v5 branch, while theethers-v6
implementation is available on themain
branch.In
ethers-v5
,ethers.provider.Web3Provider
returnsJsonRpcProvider
from the getSigner() method (Web3Provider
extendsJsonRpcProvider
). The same applies toethers-v6
with ethers.BrowserProvider.…