teloscan icon indicating copy to clipboard operation
teloscan copied to clipboard

Improve error reporting notification

Open pmjanus opened this issue 1 year ago • 1 comments

On https://www.teloscan.io/address/0xD102cE6A4dB07D247fcc28F366A623Df0938CA9E?tab=contract and presumably all other contracts, if you connect your wallet and try to do a deposit, if your connected account has 0 balance you might get an error that says: image IF you click to see more details you will see: Error Details { "error": "{"code":-32603,"message":"Internal JSON-RPC error.","data":{"code":3,"message":"The sender address has a zero balance","cause":null}}" }

I want the user to have access to the error message on the initial notification of an error. Right now it is describing the state prior to the error but not the error message.

pmjanus avatar Apr 14 '24 19:04 pmjanus

Personal notes: I created this Contract to generate errors easily. http://localhost:8080/address/0xc19a7E079B6661B3292B6B2476EcFa1311465C09?tab=contract

Viterbo avatar Apr 15 '24 12:04 Viterbo