Minor wording changes

This commit is contained in:
Christopher Goes 2018-05-31 00:25:18 +02:00
parent 1a3ef51129
commit 99bed49c8d
No known key found for this signature in database
GPG Key ID: E828D98232D328D3
2 changed files with 2 additions and 6 deletions

View File

@ -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")
}

View File

@ -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 {