From 99bed49c8d3e5d695de2e4fe5c7e9199c8e79671 Mon Sep 17 00:00:00 2001 From: Christopher Goes Date: Thu, 31 May 2018 00:25:18 +0200 Subject: [PATCH] Minor wording changes --- x/slashing/errors.go | 6 +----- x/slashing/handler.go | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/x/slashing/errors.go b/x/slashing/errors.go index 8a923f7542..087dc03141 100644 --- a/x/slashing/errors.go +++ b/x/slashing/errors.go @@ -1,3 +1,4 @@ +//nolint package slashing import ( @@ -17,17 +18,12 @@ const ( CodeValidatorJailed CodeType = 202 ) -//nolint func ErrNoValidatorForAddress(codespace sdk.CodespaceType) sdk.Error { return newError(codespace, CodeInvalidValidator, "That address is not associated with any known validator") } - -//nolint func ErrBadValidatorAddr(codespace sdk.CodespaceType) sdk.Error { return newError(codespace, CodeInvalidValidator, "Validator does not exist for that address") } - -//nolint func ErrValidatorJailed(codespace sdk.CodespaceType) sdk.Error { return newError(codespace, CodeValidatorJailed, "Validator jailed, cannot yet be unrevoked") } diff --git a/x/slashing/handler.go b/x/slashing/handler.go index cf83a6a992..98e9d30ada 100644 --- a/x/slashing/handler.go +++ b/x/slashing/handler.go @@ -16,7 +16,7 @@ func NewHandler(k Keeper) sdk.Handler { } } -// Validators must submit a transaction to unrevoke themselves after +// Validators must submit a transaction to unrevoke itself after // having been revoked (and thus unbonded) for downtime func handleMsgUnrevoke(ctx sdk.Context, msg MsgUnrevoke, k Keeper) sdk.Result {