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
{{ message }}
This repository was archived by the owner on Feb 16, 2025. It is now read-only.
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.