-
EnvironmentTestnet Acknowledgement
Issue DescriptionI want to write an app like zksync bridge frontend such as users connect their wallet and sign then deposit to l2 but when I look in SDK docs there is only examples with creating a wallet with PRIVATE_KEY and call deposit function. But I can't use users PRIVATE_KEY of course. Expected BehaviorUser connect their metamask with using walletconnect modal then enter amount and sign deposit. Like bridge.zksync.io Code Exampleconst provider = new ethers.providers.Web3Provider(window.ethereum); const zkSigner = zksync.Signer.from(signer as any); // ????? how to send deposit request to metamask Repo Link (Optional)No response |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 2 replies
-
Hi @kadirchan 👋 Please take a look at using Wagmi for connecting a user's wallet. |
Beta Was this translation helpful? Give feedback.
I solved it with migrate my app to react from angular thanks anyway