* Refactor CliContext as Context
* Fix lint issues
* Fix goimports
* Fix gov tests
* Resolved ci-lint issues
* Add changelog
* Rename cliCtx to clientCtx
* Fix mocks and routes
* Add changelog
* Update changelog
* Apply suggestions from code review
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
* merge client/rpc/ro{ot,utes}.go
* Update docs
* client/rpc: remove redundant client/rpc.RegisterRPCRoutes
* regenerate mocks
* Update ADRs
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
23 lines
831 B
Go
23 lines
831 B
Go
package client
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
)
|
|
|
|
// ErrInvalidAccount returns a standardized error reflecting that a given
|
|
// account address does not exist.
|
|
func ErrInvalidAccount(addr sdk.AccAddress) error {
|
|
return fmt.Errorf(`no account with address %s was found in the state.
|
|
Are you sure there has been a transaction involving it?`, addr)
|
|
}
|
|
|
|
// ErrVerifyCommit returns a common error reflecting that the blockchain commit at a given
|
|
// height can't be verified. The reason is that the base checkpoint of the certifier is
|
|
// newer than the given height
|
|
func ErrVerifyCommit(height int64) error {
|
|
return fmt.Errorf(`the height of base truststore in the light client is higher than height %d.
|
|
Can't verify blockchain proof at this height. Please set --trust-node to true and try again`, height)
|
|
}
|