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
@@ -87,6 +87,7 @@ func TestUnJailNotBonded(t *testing.T) {
amt := f.stakingKeeper.TokensFromConsensusPower(f.ctx, 50)
msg := tstaking.CreateValidatorMsg(addr, val, amt)
msg.MinSelfDelegation = amt
msg.Description = stakingtypes.Description{Moniker: "TestValidator"}
res, err := tstaking.CreateValidatorWithMsg(f.ctx, msg)
assert.NilError(t, err)
assert.Assert(t, res != nil)