Closes: #3245
This commit is contained in:
committed by
Alessio Treglia
parent
ecd2bfa16f
commit
bc8d2d4414
@@ -36,7 +36,7 @@ func handleMsgUnjail(ctx sdk.Context, msg MsgUnjail, k Keeper) sdk.Result {
|
||||
}
|
||||
|
||||
// cannot be unjailed if not jailed
|
||||
if !validator.GetJailed() {
|
||||
if !validator.IsJailed() {
|
||||
return ErrValidatorNotJailed(k.codespace).Result()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user