zksync-sdk / zksync2-java

zksync2 is a web3j library adapted to work with the ZKsync Era.
Apache License 2.0
39 stars 25 forks source link

Validate RPC errors and provide some information from SDK #38

Open Antiglobalist opened 4 months ago

Antiglobalist commented 4 months ago

🌟 Feature Request

Expand the protocol for interaction with the wallet. To be able to handle errors Now, if you send invalid data, the SDK crashes

📝 Description

At the moment it is difficult to understand why the error occurred. For example, if I make a transaction for an amount greater than the balance, I receive the following error: image

🖼️ Mockups/Examples

image Where sendAmount exceeds wallet balance

petarTxFusion commented 3 months ago

Thank you for your suggestion. We recognize the importance of improving our error handling and are planning to address this in an upcoming refactor. We will make sure to notify you once these changes have been implemented.