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
+1 -1
View File
@@ -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()
}