fix: genesis typo in error message (#11576)

This commit is contained in:
William Chong 2022-04-08 17:33:31 +08:00 committed by GitHub
parent 60733955d3
commit 47d74779ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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