Skip to content

Commit

Permalink
fix: fix chain id for chain simulations (backport #4309) (#4315)
Browse files Browse the repository at this point in the history
* fix: fix chain id for chain simulations (#4309)

* fix chain id for simulations

* add changelog

(cherry picked from commit 81513c6)

* Update changelog.md

---------

Co-authored-by: Danilo Pantani <[email protected]>
  • Loading branch information
mergify[bot] and Pantani authored Aug 28, 2024
1 parent 5e399b0 commit 6b6ecd0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Changes

- [#4292](https://github.com/ignite/cli/pull/4292) Bump Cosmos SDK to `v0.50.9`
- [#4309](https://github.com/ignite/cli/pull/4309) Fix chain id for chain simulations

## [`v28.5.1`](https://github.com/ignite/cli/releases/tag/v28.5.1)

Expand Down
5 changes: 2 additions & 3 deletions ignite/templates/app/files/app/sim_test.go.plush
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ func TestAppStateDeterminism(t *testing.T) {
config.ExportParamsPath = ""
config.OnOperation = true
config.AllInvariants = true
config.ChainID = SimAppChainID

numSeeds := 3
numTimesToRunPerSeed := 3 // This used to be set to 5, but we've temporarily reduced it to 3 for the sake of faster CI.
Expand Down Expand Up @@ -372,8 +373,6 @@ func TestAppStateDeterminism(t *testing.T) {
} else {
logger = log.NewNopLogger()
}
chainID := fmt.Sprintf("chain-id-%d-%d", i, j)
config.ChainID = chainID

db := dbm.NewMemDB()
bApp, err := app.New(
Expand All @@ -383,7 +382,7 @@ func TestAppStateDeterminism(t *testing.T) {
true,
appOptions,
interBlockCacheOpt(),
baseapp.SetChainID(chainID),
baseapp.SetChainID(SimAppChainID),
)
require.NoError(t, err)

Expand Down

0 comments on commit 6b6ecd0

Please sign in to comment.