sei-chain
sei-chain copied to clipboard
Add more checks `ValidateBasic` message method
ValidateBasic of sdk.Msg allows performing static checks for an sdk message.
These checks are performed before the message is broadcast to the network, therefore it is more optimized to have these checks in ValidateBasic rather that in the message handler to save gas for txs bound to fail.
This PR adds some more checks in message validate basic like contract address check or coins validity checks
Super awesome! I just approved the CI for this and thanks so much for this PR.
Sure!
Some message also defines accountToLiquidate where bech32 format could be checked as well. But I wasn't 100% sure this represent an account address
Thanks for this PR ser (and sry for the delay)! There were a few other features added to the x/dex module since last year and the checks have been added to message_place_orders and message_cancel_orders since then. I'm going to close this PR but def send a github issue or PR if there is any other missing piece to the module!