From b88bf2f63e995f5b3614763dca56d9f870749dc4 Mon Sep 17 00:00:00 2001 From: Danilo Pantani Date: Wed, 11 Sep 2024 12:52:40 +0200 Subject: [PATCH] fix: skip upgrade prefix for sim tests (#4350) * skip upgrade prefix * add changelog --- changelog.md | 1 + ignite/templates/app/files/app/sim_test.go.plush | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/changelog.md b/changelog.md index 4a2aa73e6c..8078f8e125 100644 --- a/changelog.md +++ b/changelog.md @@ -53,6 +53,7 @@ - [#4128](https://github.com/ignite/cli/pull/4128) Check for duplicate proto fields in config - [#4309](https://github.com/ignite/cli/pull/4309) Fix chain id for chain simulations - [#4323](https://github.com/ignite/cli/pull/4323) Add missing `--config` handling in the `chain` commands +- [#4350](https://github.com/ignite/cli/pull/4350) Skip upgrade prefix for sim tests ## [`v28.5.1`](https://github.com/ignite/cli/releases/tag/v28.5.1) diff --git a/ignite/templates/app/files/app/sim_test.go.plush b/ignite/templates/app/files/app/sim_test.go.plush index 0e6fa0ec4d..2f5b4b0aee 100644 --- a/ignite/templates/app/files/app/sim_test.go.plush +++ b/ignite/templates/app/files/app/sim_test.go.plush @@ -15,6 +15,7 @@ import ( "cosmossdk.io/store" storetypes "cosmossdk.io/store/types" "cosmossdk.io/x/feegrant" + upgradetypes "cosmossdk.io/x/upgrade/types" abci "github.com/cometbft/cometbft/abci/types" cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" dbm "github.com/cosmos/cosmos-db" @@ -200,6 +201,9 @@ func TestAppImportExport(t *testing.T) { // skip certain prefixes skipPrefixes := map[string][][]byte{ + upgradetypes.StoreKey: { + []byte{upgradetypes.VersionMapByte}, + }, stakingtypes.StoreKey: { stakingtypes.UnbondingQueueKey, stakingtypes.RedelegationQueueKey, stakingtypes.ValidatorQueueKey, stakingtypes.HistoricalInfoKey, stakingtypes.UnbondingIDKey, stakingtypes.UnbondingIndexKey,