Skip to content

Commit

Permalink
app.go fixes for axelar cork
Browse files Browse the repository at this point in the history
  • Loading branch information
mvid committed Jun 27, 2023
1 parent c22b34a commit 90db919
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ import (
v5 "github.com/peggyjv/sommelier/v6/app/upgrades/v5"
v6 "github.com/peggyjv/sommelier/v6/app/upgrades/v6"
"github.com/peggyjv/sommelier/v6/x/axelarcork"
axelarcorkclient "github.com/peggyjv/sommelier/v6/x/axelarcork/client"
axelarcorkkeeper "github.com/peggyjv/sommelier/v6/x/axelarcork/keeper"
axelarcorktypes "github.com/peggyjv/sommelier/v6/x/axelarcork/types"
"github.com/peggyjv/sommelier/v6/x/cellarfees"
Expand Down Expand Up @@ -153,6 +154,8 @@ var (
gravityclient.ProposalHandler,
corkclient.AddProposalHandler,
corkclient.RemoveProposalHandler,
axelarcorkclient.AddProposalHandler,
axelarcorkclient.AddChainConfigurationHandler,
),
params.AppModuleBasic{},
crisis.AppModuleBasic{},
Expand All @@ -167,6 +170,7 @@ var (
authzmodule.AppModuleBasic{},
gravity.AppModuleBasic{},
cork.AppModuleBasic{},
axelarcork.AppModuleBasic{},
cellarfees.AppModuleBasic{},
incentives.AppModuleBasic{},
)
Expand Down Expand Up @@ -293,6 +297,7 @@ func NewSommelierApp(
feegrant.StoreKey,
authzkeeper.StoreKey,
corktypes.StoreKey,
axelarcorktypes.StoreKey,
incentivestypes.StoreKey,
)
tkeys := sdk.NewTransientStoreKeys(paramstypes.TStoreKey)
Expand Down Expand Up @@ -856,6 +861,7 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino
paramsKeeper.Subspace(icahosttypes.SubModuleName)
paramsKeeper.Subspace(gravitytypes.ModuleName)
paramsKeeper.Subspace(corktypes.ModuleName)
paramsKeeper.Subspace(axelarcorktypes.ModuleName)
paramsKeeper.Subspace(cellarfeestypes.ModuleName)
paramsKeeper.Subspace(incentivestypes.ModuleName)

Expand Down
2 changes: 1 addition & 1 deletion x/axelarcork/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func (am AppModule) LegacyQuerierHandler(_ *codec.LegacyAmino) sdk.Querier {

// ConsensusVersion implements AppModule/ConsensusVersion.
func (AppModule) ConsensusVersion() uint64 {
return 2
return 1
}

func (am AppModule) WeightedOperations(simState module.SimulationState) []sim.WeightedOperation {
Expand Down

0 comments on commit 90db919

Please sign in to comment.