From 02862ec4e3fe45bea63c38dc84064e2bb8f2f359 Mon Sep 17 00:00:00 2001 From: Angelo RC Date: Tue, 3 May 2022 16:09:50 +0200 Subject: [PATCH] fix(cli): add chain-id to PrepareGenesis cmd (#1393) ## 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 4b12425cfd4d46cfd8bb3b3675972d29c3a6a494) --- cmd/osmosisd/cmd/genesis.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/osmosisd/cmd/genesis.go b/cmd/osmosisd/cmd/genesis.go index fdf409e3a96..8bc225ee0f5 100644 --- a/cmd/osmosisd/cmd/genesis.go +++ b/cmd/osmosisd/cmd/genesis.go @@ -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