R4R: Rename validator.GetJailed() to validator.IsJailed() #3245 (#4017)

Closes: #3245
This commit is contained in:
Frank Yang
2019-04-02 15:43:22 +02:00
committed by Alessio Treglia
parent ecd2bfa16f
commit bc8d2d4414
8 changed files with 12 additions and 11 deletions
+2 -2
View File
@@ -55,7 +55,7 @@ func TestCannotUnjailUnlessMeetMinSelfDelegation(t *testing.T) {
undelegateMsg := staking.NewMsgUndelegate(sdk.AccAddress(addr), addr, unbondAmt)
got = staking.NewHandler(sk)(ctx, undelegateMsg)
require.True(t, sk.Validator(ctx, addr).GetJailed())
require.True(t, sk.Validator(ctx, addr).IsJailed())
// assert non-jailed validator can't be unjailed
got = slh(ctx, NewMsgUnjail(addr))
@@ -106,7 +106,7 @@ func TestJailedValidatorDelegations(t *testing.T) {
// verify validator still exists and is jailed
validator, found := stakingKeeper.GetValidator(ctx, valAddr)
require.True(t, found)
require.True(t, validator.GetJailed())
require.True(t, validator.IsJailed())
// verify the validator cannot unjail itself
got = NewHandler(slashingKeeper)(ctx, NewMsgUnjail(valAddr))