Closes: #3245
This commit is contained in:
committed by
Alessio Treglia
parent
ecd2bfa16f
commit
bc8d2d4414
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user