Skip to content

Commit

Permalink
fix(cli): add chain-id to PrepareGenesis cmd (#1393)
Browse files Browse the repository at this point in the history
## What is the purpose of the change

The PR fix the `PrepareGenesis` cmd

## Brief change log

* fix(cli): add chain-id to PrepareGenesis cmd

## Testing and Verifying

Manually verified the change

## Documentation and Release Note

  - Does this pull request introduce a new feature or user-facing behavior changes? NO
  - Is a relevant changelog entry added to the `Unreleased` section in `CHANGELOG.md`? NO
  - How is the feature or change documented? not applicable

(cherry picked from commit 4b12425)
  • Loading branch information
angelorc authored and mergify[bot] committed May 3, 2022
1 parent 5a2137b commit 02862ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/osmosisd/cmd/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ func PrepareGenesis(clientCtx client.Context, appState map[string]json.RawMessag
cdc := depCdc.(codec.Codec)

// chain params genesis
genDoc.ChainID = chainID
genDoc.GenesisTime = genesisParams.GenesisTime

genDoc.ConsensusParams = genesisParams.ConsensusParams
Expand Down

0 comments on commit 02862ec

Please sign in to comment.