Paymaster Flow Issue with "zksync-ethers" Upgrade #530
-
We recently upgraded our project from using "zksync-web3" SDK to "zksync-ethers", as "zksync-web3" is deprecated. Additionally, we updated the "ethers" package to the latest version 6.x. However, after the upgrade, we encountered an issue with the paymaster flow. Previously, with zksync-web3, the paymaster flow was functioning correctly. However, after the upgrade, the paymaster no longer works as expected. Instead of displaying the paymaster approval dialogue, it redirects the user to the normal flow where transaction approval is done with ETH. We suspect that there might be some syntactical changes introduced in the new SDK, but the documentation hasn't been updated to reflect these changes. We're seeking assistance to resolve this issue. Code Snippet:
Any guidance or insights into resolving this issue would be greatly appreciated. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Hey @gauravl-tevaeralabs 👋 The syntax here is correct. This sentence " Instead of displaying the paymaster approval dialogue, it redirects the user to the normal flow where transaction approval is done with ETH." makes me think its likely this line Just to test can you do something like |
Beta Was this translation helpful? Give feedback.
Sorry fro the late answer.
Wallet.createRandom()
does not function the same way in v6 as in v5. So random wallet should be created like in the example below.Example: