[SDK] Whether the Wagmi + Ethers combination can be used normally ? #430
-
EnvironmentMainnet Acknowledgement
Issue DescriptionHI, I am a new developer who has just joined Zksync era and I have some questions about dapp. I see that the I have seen the official tutorial, Wagmi + VIEM, but did not see the official introduction of this in the dapp demo? Or did I miss it? I also saw in the document that zksync-ethers is added functionality to ethers. Is this kind of additional functionality important in the formal dapp development? If so, will it be a problem when using viem and ethers in conjunction with wagmi? Expected Behaviornone Code Examplenone Repo Link (Optional)No response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I think I saw something, can I understand that? |
Beta Was this translation helpful? Give feedback.
Yes, you're correct in your understanding. The
zksync-ethers
library extends the functionality of ethers to support unique zkSync features like account abstraction and deploying smart contracts. If your dApp doesn't require these specific zkSync features, you can use ethers in combination with Wagmi or Vue without any issues.However, if you want to deploy smart contracts or enable advanced zkSync features, like account abstraction, then you need to use the
zksync-ethers
library. This is because these features require providing additional fields to those that Ethereum transactions have by default.