Skip to content

[SDK] Question on the Design Choice of Signer Class in zkSync's ether SDK for MetaMask Integration #291

Closed Answered by danijelTxFusion
nooma-42 asked this question in SDKs
Discussion options

You must be logged in to vote

Is this comment conflict with the implementation?

The code that you are posting refers to zksync-ethers based on the ethers-v5 implementation. The links that you posted refer to the ethers-v6 implementation. Just to make it clear, the ethers-v5 implementation is available on the zksync-ethers repository's ethers-v5 branch, while the ethers-v6 implementation is available on the main branch.

Why not wrap abstract class signer or wallet from vanilla ethers? given metamask injection mentioned above.

In ethers-v5, ethers.provider.Web3Provider returns JsonRpcProvider from the getSigner() method (Web3Provider extends JsonRpcProvider). The same applies to ethers-v6 with ethers.BrowserProvider.…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by nooma-42

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
SDKs
Labels
sdk Questions for the SDKs devtools Questions related to zkSync Tooling
6 participants