Skip to content

Commit

Permalink
refactor: use different chain id for in place testnet (backport #4376) (
Browse files Browse the repository at this point in the history
#4378)

* refactor: use different chain id for in place testnet (#4376)

Noticed by @toschdev

(cherry picked from commit 62726ab)

* Update changelog.md

---------

Co-authored-by: Julien Robert <[email protected]>
  • Loading branch information
mergify[bot] and julienrbrt authored Oct 1, 2024
1 parent b6eb44c commit 656f317
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion ignite/cmd/testnet_inplace.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package ignitecmd

import (
"fmt"

"github.com/spf13/cobra"

sdk "github.com/cosmos/cosmos-sdk/types"
Expand Down Expand Up @@ -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,
}
Expand Down

0 comments on commit 656f317

Please sign in to comment.