From 656f317238565ebaafcc798b12fd3e0e201c02ab Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 10:30:54 +0200 Subject: [PATCH] refactor: use different chain id for in place testnet (backport #4376) (#4378) * refactor: use different chain id for in place testnet (#4376) Noticed by @toschdev (cherry picked from commit 62726abb91312f8265ee3d4b868dc091b63c73e9) * Update changelog.md --------- Co-authored-by: Julien Robert --- changelog.md | 4 ++++ ignite/cmd/testnet_inplace.go | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 7299833b37..a6b5808b4e 100644 --- a/changelog.md +++ b/changelog.md @@ -2,6 +2,10 @@ ## Unreleased +### Changes + +- [#4376](https://github.com/ignite/cli/pull/4376) Set different chain-id for in place testnet + ## [`v28.5.3`](https://github.com/ignite/cli/releases/tag/v28.5.3) ### Changes diff --git a/ignite/cmd/testnet_inplace.go b/ignite/cmd/testnet_inplace.go index 8b679c1738..6e2b76d757 100644 --- a/ignite/cmd/testnet_inplace.go +++ b/ignite/cmd/testnet_inplace.go @@ -1,6 +1,8 @@ package ignitecmd import ( + "fmt" + "github.com/spf13/cobra" sdk "github.com/cosmos/cosmos-sdk/types" @@ -121,7 +123,7 @@ func testnetInplace(cmd *cobra.Command, session *cliui.Session) error { } args := chain.InPlaceArgs{ - NewChainID: chainID, + NewChainID: fmt.Sprintf("local%s", chainID), NewOperatorAddress: operatorAddress.String(), AccountsToFund: accounts, }