Closed dwalintukan closed 6 years ago
@dwalintukan this is kind of strange, because I get a different error message when I tried to send a max balance transaction. Can you try it again on your end and see what you get? In the meantime I will work on sending the error to the dapp
@soshochang The case that gave us the error message is when say you have 0.9 QTUM and you try to send like 0.7 QTUM and its not enough to pay the fee. Bernard discovered this while testing with very little QTUM.
One of the main issues is that by the time the error ends up at the web app, the error message is very basic and does not explain anything. Just returns a 400 I believe.
Ask Bernard the steps he took to repro this, but it should be something like:
resolved PR193
Example:
The error message returned from Qrypto is a
400 error code
. We need to return the error message down the call chain so that the dapp can accurately get the reason why the tx is failing, e.g. "Not enough QTUM to send this transaction", etc etc.This also happens when doing a regular qtum send:
I'm guessing the qtumjs-wallet does not return the error message? Or we are not handling the error message properly.