Skip to content

Commit

Permalink
fix: subspace (#2524)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaruwangway authored May 23, 2023
1 parent f0d7fb2 commit bd1e608
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion x/globalfee/migrations/v2/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func MigrateStore(ctx sdk.Context, globalfeeSubspace paramtypes.Subspace) error
}

if !globalfeeSubspace.HasKeyTable() {
globalfeeSubspace.WithKeyTable(types.ParamKeyTable())
globalfeeSubspace = globalfeeSubspace.WithKeyTable(types.ParamKeyTable())
}

globalfeeSubspace.SetParamSet(ctx, &params)
Expand Down
4 changes: 2 additions & 2 deletions x/globalfee/migrations/v2/v2_test/migration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ func TestMigrateStore(t *testing.T) {
memStoreKey,
paramtypes.ModuleName,
)
// register the subspace withthe v10 paramKeyTable
newSubspace.WithKeyTable(globalfeetypes.ParamKeyTable())
// register the subspace with the v10 paramKeyTable
newSubspace = newSubspace.WithKeyTable(globalfeetypes.ParamKeyTable())

// check MinGasPrices isn't set
_, ok := getMinGasPrice(newSubspace, ctx)
Expand Down

0 comments on commit bd1e608

Please sign in to comment.