Skip to content

Commit

Permalink
change v280 to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-yuhh committed Aug 3, 2023
1 parent 1fd575d commit fc5a2f7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions x/cert/keeper/migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package keeper
import (
sdk "github.com/cosmos/cosmos-sdk/types"

v280 "github.com/shentufoundation/shentu/v2/x/cert/legacy/v280"
v2 "github.com/shentufoundation/shentu/v2/x/cert/legacy/v2"
)

// Migrator is a struct for handling in-place store migrations.
Expand All @@ -18,5 +18,5 @@ func NewMigrator(keeper Keeper) Migrator {

// Migrate1to2 migrates from version 1 to 2.
func (m Migrator) Migrate1to2(ctx sdk.Context) error {
return v280.MigrateStore(ctx, m.keeper.storeKey, m.keeper.cdc)
return v2.MigrateStore(ctx, m.keeper.storeKey, m.keeper.cdc)

Check warning on line 21 in x/cert/keeper/migrations.go

View check run for this annotation

Codecov / codecov/patch

x/cert/keeper/migrations.go#L20-L21

Added lines #L20 - L21 were not covered by tests
}
2 changes: 1 addition & 1 deletion x/cert/legacy/v280/store.go → x/cert/legacy/v2/store.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v280
package v2

import (
"github.com/cosmos/cosmos-sdk/codec"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v280_test
package v2_test

import (
"fmt"
Expand All @@ -17,7 +17,7 @@ import (

shentuapp "github.com/shentufoundation/shentu/v2/app"
"github.com/shentufoundation/shentu/v2/common"
v280 "github.com/shentufoundation/shentu/v2/x/cert/legacy/v280"
v280 "github.com/shentufoundation/shentu/v2/x/cert/legacy/v2"
"github.com/shentufoundation/shentu/v2/x/cert/types"
)

Expand Down

0 comments on commit fc5a2f7

Please sign in to comment.