From 689981d728f84285fbfdb38427e6f4f7df3b342c 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 (cherry picked from commit b88bf2f63e995f5b3614763dca56d9f870749dc4) --- 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 f3db04daaa..a13ce4ca1a 100644 --- a/changelog.md +++ b/changelog.md @@ -19,6 +19,7 @@ - [#4309](https://github.com/ignite/cli/pull/4309) Fix chain id for chain simulations - [#4322](https://github.com/ignite/cli/pull/4322) Create a message for authenticate buf for generate ts-client - [#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,