You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The market module keeper is rather diligent about returning informative errors to the user. Unfortunately, the error messages are lost in transmission and replaced with messages such as failed to execute message; message index: 0.
How to reproduce
Create an order with a non-existing asset on one side:
The resulting output is something like: {"height":"23746","txhash":"C90F800465460C171F1FB2CD2B3310D2315CF79328B0B37A9BFDC3468D0F619B","codespace":"market","code":1,"data":"","raw_log":"internal","logs":[],"info":"","gas_wanted":"200000","gas_used":"75742","tx":null,"timestamp":""}
My guess is that the actual error should be about an insufficient balance of bobs, but it could be that it's caught in an earlier check. Would be nice to have a more informative error message than code: 1.
The text was updated successfully, but these errors were encountered:
On the develop branch it appears to return a meaningful error: ... failed to execute message; message index: 0: Account 44B8D0F558DB9AAF6242CC03C55AE36115CB4B3A has insufficient balance to execute trade: 100000000000echf,3500000000000edkk,100000000000eeur,3500000000000ejpy,3500000000000enok,3500000000000esek,990000000000ungm \u003c 50000bobs: insufficient account balance","logs":[],"info":"","gas_wanted":"200000","gas_used":"69705","tx":null,"timestamp":""}
Describe the bug
The market module keeper is rather diligent about returning informative errors to the user. Unfortunately, the error messages are lost in transmission and replaced with messages such as
failed to execute message; message index: 0
.How to reproduce
Create an order with a non-existing asset on one side:
emd tx market add-limit 10000500bobs 5000000ungm orderid15 --from key1 --fees 200000ungm
The resulting output is something like:
{"height":"23746","txhash":"C90F800465460C171F1FB2CD2B3310D2315CF79328B0B37A9BFDC3468D0F619B","codespace":"market","code":1,"data":"","raw_log":"internal","logs":[],"info":"","gas_wanted":"200000","gas_used":"75742","tx":null,"timestamp":""}
My guess is that the actual error should be about an insufficient balance of
bobs
, but it could be that it's caught in an earlier check. Would be nice to have a more informative error message thancode: 1
.The text was updated successfully, but these errors were encountered: