From 47d74779ac76a22b6cd3769b050e32848816a94d Mon Sep 17 00:00:00 2001 From: William Chong <6198816+williamchong@users.noreply.github.com> Date: Fri, 8 Apr 2022 17:33:31 +0800 Subject: [PATCH] fix: genesis typo in error message (#11576) --- testutil/network/network.go | 2 +- x/evidence/types/genesis.go | 2 +- x/genutil/client/cli/init.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/testutil/network/network.go b/testutil/network/network.go index c21c78d54..71fe7283b 100644 --- a/testutil/network/network.go +++ b/testutil/network/network.go @@ -77,7 +77,7 @@ type Config struct { TxConfig client.TxConfig AccountRetriever client.AccountRetriever AppConstructor AppConstructor // the ABCI application constructor - GenesisState map[string]json.RawMessage // custom gensis state to provide + GenesisState map[string]json.RawMessage // custom genesis state to provide TimeoutCommit time.Duration // the consensus commitment timeout ChainID string // the network chain-id NumValidators int // the total number of validators to create and bond diff --git a/x/evidence/types/genesis.go b/x/evidence/types/genesis.go index b274ea207..c7a8b1041 100644 --- a/x/evidence/types/genesis.go +++ b/x/evidence/types/genesis.go @@ -37,7 +37,7 @@ func DefaultGenesisState() *GenesisState { } } -// Validate performs basic gensis state validation returning an error upon any +// Validate performs basic genesis state validation returning an error upon any // failure. func (gs GenesisState) Validate() error { for _, e := range gs.Evidence { diff --git a/x/genutil/client/cli/init.go b/x/genutil/client/cli/init.go index 4f3ee1a9f..3107061c4 100644 --- a/x/genutil/client/cli/init.go +++ b/x/genutil/client/cli/init.go @@ -163,7 +163,7 @@ func InitCmd(mbm module.BasicManager, defaultNodeHome string) *cobra.Command { genDoc.AppState = appState if err = genutil.ExportGenesisFile(genDoc, genFile); err != nil { - return errors.Wrap(err, "Failed to export gensis file") + return errors.Wrap(err, "Failed to export genesis file") } toPrint := newPrintInfo(config.Moniker, chainID, nodeID, "", appState)