Skip to content

Commit

Permalink
refactor: rename v1.4 bundles types
Browse files Browse the repository at this point in the history
  • Loading branch information
shifty11 committed May 22, 2024
1 parent 6463063 commit 2cad9e6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/upgrades/v1_5/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package v1_5
import (
"context"
"fmt"
"github.com/KYVENetwork/chain/app/upgrades/v1_5/v1_4_bundles_types"
"github.com/KYVENetwork/chain/app/upgrades/v1_5/v1_4_pool_types"
pooltypes "github.com/KYVENetwork/chain/x/pool/types"

Expand All @@ -11,7 +12,6 @@ import (
storetypes "cosmossdk.io/store/types"
upgradetypes "cosmossdk.io/x/upgrade/types"

"github.com/KYVENetwork/chain/app/upgrades/v1_5/v1_4_types"
"github.com/KYVENetwork/chain/x/bundles/keeper"
bundlestypes "github.com/KYVENetwork/chain/x/bundles/types"
poolkeeper "github.com/KYVENetwork/chain/x/pool/keeper"
Expand Down Expand Up @@ -64,7 +64,7 @@ func migrateStorageCosts(sdkCtx sdk.Context, bundlesKeeper keeper.Keeper, poolKe

// Copy storage cost from old params to new params
// The storage cost of all storage providers will be the same after this migration
oldParams := v1_4_types.GetParams(sdkCtx, bundlesStoreKey, cdc)
oldParams := v1_4_bundles_types.GetParams(sdkCtx, bundlesStoreKey, cdc)
newParams := bundlestypes.Params{
UploadTimeout: oldParams.UploadTimeout,
StorageCosts: []bundlestypes.StorageCost{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v1_4_types
package v1_4_bundles_types

import (
storeTypes "cosmossdk.io/store/types"
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2cad9e6

Please sign in to comment.