Skip to content

Commit

Permalink
fix: skip upgrade prefix for sim tests (#4350)
Browse files Browse the repository at this point in the history
* skip upgrade prefix

* add changelog
  • Loading branch information
Pantani authored Sep 11, 2024
1 parent 0568145 commit b88bf2f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 4 additions & 0 deletions ignite/templates/app/files/app/sim_test.go.plush
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit b88bf2f

Please sign in to comment.