refactor(staking): add missing msgServer tests and move ValidateBasic() logic to msgServer (#15820)

This commit is contained in:
Likhita Polavarapu
2023-04-14 14:54:29 +00:00
committed by GitHub
parent d7c8353989
commit 7132a7624e
13 changed files with 1152 additions and 496 deletions
+1 -1
View File
@@ -379,7 +379,7 @@ func newBuildCreateValidatorMsg(clientCtx client.Context, txf tx.Factory, fs *fl
if err != nil {
return txf, nil, err
}
if err := msg.ValidateBasic(); err != nil {
if err := msg.Validate(); err != nil {
return txf, nil, err
}