Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
CJPotter10 committed Dec 7, 2024
1 parent e87b401 commit 042df3f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ func New(

// RegisterUpgradeHandlers is used for registering any on-chain upgrades.
// Make sure it's called after `app.ModuleManager` and `app.configurator` are set.
//app.RegisterUpgradeHandlers()
// app.RegisterUpgradeHandlers()
app.setupUpgradeHandlers()
app.setupUpgradeStoreLoaders()

Expand Down
6 changes: 3 additions & 3 deletions app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ package app
import (
"fmt"

"github.com/tellor-io/layer/app/upgrades"
v_2_0 "github.com/tellor-io/layer/app/upgrades/v2.0.0-alpha2"

upgradetypes "cosmossdk.io/x/upgrade/types"
"github.com/tellor-io/layer/app/upgrades"
)

var (
// `Upgrades` defines the upgrade handlers and store loaders for the application.
// New upgrades should be added to this slice after they are implemented.
Upgrades = []upgrades.Upgrade{
v_2_0.Upgrade,
Upgrades = []*upgrades.Upgrade{
&v_2_0.Upgrade,
}
Forks = []upgrades.Fork{}
)
Expand Down
1 change: 1 addition & 0 deletions app/upgrades/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package upgrades
import (
store "cosmossdk.io/store/types"
upgradetypes "cosmossdk.io/x/upgrade/types"

"github.com/cosmos/cosmos-sdk/types/module"
)

Expand Down
4 changes: 2 additions & 2 deletions app/upgrades/v2.0.0-alpha2/constants.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package v_2_0_0_alpha2

import (
store "cosmossdk.io/store/types"

"github.com/tellor-io/layer/app/upgrades"

store "cosmossdk.io/store/types"
)

const (
Expand Down
1 change: 1 addition & 0 deletions app/upgrades/v2.0.0-alpha2/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"

upgradetypes "cosmossdk.io/x/upgrade/types"

sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
)
Expand Down
6 changes: 4 additions & 2 deletions x/bridge/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,11 @@ func NewAppModule(
func (am AppModule) RegisterServices(cfg module.Configurator) {
types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper))
types.RegisterQueryServer(cfg.QueryServer(), keeper.NewQuerier(am.keeper))
cfg.RegisterMigration("bridge", 1, func(ctx sdk.Context) error {
if err := cfg.RegisterMigration("bridge", 1, func(ctx sdk.Context) error {
return v2.MigrateStoreFromV1ToV2(ctx, &am.keeper)
})
}); err != nil {
panic(fmt.Sprintf("Could not migrate store from v1 to v2: %v", err))
}
}

// RegisterInvariants registers the invariants of the module. If an invariant deviates from its predicted value, the InvariantRegistry triggers appropriate logic (most often the chain will be halted)
Expand Down

0 comments on commit 042df3f

Please sign in to comment.