Skip to content

Commit

Permalink
Code improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardMikhrin committed Nov 22, 2024
1 parent 1e75c4f commit 075f304
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -941,12 +941,10 @@ func NewBridge(
MaxValidators: app.StakingKeeper.MaxValidators(ctx),
MaxEntries: app.StakingKeeper.MaxEntries(ctx),
HistoricalEntries: app.StakingKeeper.HistoricalEntries(ctx),
BondDenom: app.StakingKeeper.BondDenom(ctx),
BondDenom: "abridge",
MinCommissionRate: app.StakingKeeper.MinCommissionRate(ctx),
MinimalDelegationAmount: "",
MinimalDelegationAmount: sdk.DefaultMinDelegationAmount,
}

stakingParams.MinimalDelegationAmount = "100000000000000000000000000"
app.StakingKeeper.SetParams(ctx, stakingParams)

multisigParams := multisigtypes.Params{
Expand All @@ -957,6 +955,7 @@ func NewBridge(
}
app.MultisigKeeper.SetParams(ctx, multisigParams)

// Disabling repeated call of InitGenesis for new multisig module
fromVM[multisigtypes.ModuleName] = multisig.AppModule{}.ConsensusVersion()

return app.mm.RunMigrations(ctx, app.configurator, fromVM)
Expand Down

0 comments on commit 075f304

Please sign in to comment.