diff --git a/x/bank/keeper/migrations.go b/x/bank/keeper/migrations.go index c081e1b0698b..5bba06caacc9 100644 --- a/x/bank/keeper/migrations.go +++ b/x/bank/keeper/migrations.go @@ -3,7 +3,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" v043 "github.com/cosmos/cosmos-sdk/x/bank/migrations/v043" - v044 "github.com/cosmos/cosmos-sdk/x/bank/migrations/v044" + v045 "github.com/cosmos/cosmos-sdk/x/bank/migrations/v045" ) // Migrator is a struct for handling in-place store migrations. @@ -23,5 +23,5 @@ func (m Migrator) Migrate1to2(ctx sdk.Context) error { // Migrate2to3 migrates x/bank storage from version 2 to 3. func (m Migrator) Migrate2to3(ctx sdk.Context) error { - return v044.MigrateStore(ctx, m.keeper.storeKey, m.keeper.cdc) + return v045.MigrateStore(ctx, m.keeper.storeKey, m.keeper.cdc) } diff --git a/x/bank/migrations/v044/keys.go b/x/bank/migrations/v045/keys.go similarity index 97% rename from x/bank/migrations/v044/keys.go rename to x/bank/migrations/v045/keys.go index d5a25393e635..f6a0af5fa6d2 100644 --- a/x/bank/migrations/v044/keys.go +++ b/x/bank/migrations/v045/keys.go @@ -1,4 +1,4 @@ -package v044 +package v045 var ( DenomAddressPrefix = []byte{0x03} diff --git a/x/bank/migrations/v044/store.go b/x/bank/migrations/v045/store.go similarity index 99% rename from x/bank/migrations/v044/store.go rename to x/bank/migrations/v045/store.go index 0ea071398352..35a3545b1141 100644 --- a/x/bank/migrations/v044/store.go +++ b/x/bank/migrations/v045/store.go @@ -1,4 +1,4 @@ -package v044 +package v045 import ( "github.com/cosmos/cosmos-sdk/codec" @@ -9,7 +9,7 @@ import ( "github.com/cosmos/cosmos-sdk/x/bank/types" ) -// MigrateStore performs in-place store migrations from v0.43 to v0.44. The +// MigrateStore performs in-place store migrations from v0.43 to v0.45. The // migration includes: // // - Migrate coin storage to save only amount. diff --git a/x/bank/migrations/v044/store_test.go b/x/bank/migrations/v045/store_test.go similarity index 93% rename from x/bank/migrations/v044/store_test.go rename to x/bank/migrations/v045/store_test.go index e60fe4e231cf..e155e98eea1d 100644 --- a/x/bank/migrations/v044/store_test.go +++ b/x/bank/migrations/v045/store_test.go @@ -1,4 +1,4 @@ -package v044_test +package v045_test import ( "testing" @@ -11,7 +11,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/address" v043 "github.com/cosmos/cosmos-sdk/x/bank/migrations/v043" - v044 "github.com/cosmos/cosmos-sdk/x/bank/migrations/v044" + v045 "github.com/cosmos/cosmos-sdk/x/bank/migrations/v045" "github.com/cosmos/cosmos-sdk/x/bank/types" ) @@ -36,7 +36,7 @@ func TestMigrateStore(t *testing.T) { prefixAccStore.Set([]byte(b.Denom), bz) } - require.NoError(t, v044.MigrateStore(ctx, bankKey, encCfg.Codec)) + require.NoError(t, v045.MigrateStore(ctx, bankKey, encCfg.Codec)) for _, b := range balances { addrPrefixStore := prefix.NewStore(store, types.CreateAccountBalancesPrefix(addr)) @@ -47,7 +47,7 @@ func TestMigrateStore(t *testing.T) { } for _, b := range balances { - denomPrefixStore := prefix.NewStore(store, v044.CreateDenomAddressPrefix(b.Denom)) + denomPrefixStore := prefix.NewStore(store, v045.CreateDenomAddressPrefix(b.Denom)) bz := denomPrefixStore.Get(address.MustLengthPrefix(addr)) require.NotNil(t, bz) } @@ -95,7 +95,7 @@ func TestMigrateDenomMetaData(t *testing.T) { denomMetadataStore.Set(key, bz) } - require.NoError(t, v044.MigrateStore(ctx, bankKey, encCfg.Codec)) + require.NoError(t, v045.MigrateStore(ctx, bankKey, encCfg.Codec)) denomMetadataStore = prefix.NewStore(store, v043.DenomMetadataPrefix) denomMetadataIter := denomMetadataStore.Iterator(nil, nil)