kava
kava copied to clipboard
Check for nil coins in genesis and msg Validate funcs
Many of our modules call IsValid
on coin types received from a msg or a genesis file.
This will panic if a coin contains a nil sdk.Int
value, which can happen if a msg or genesis file is incomplete.
We should add nil checks to msg and genesis validate functions.
Can you give an example, especially with regards to a message? It seems like validate basic should always catch this at the handler.