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.
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:
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.