Skip to content

Commit

Permalink
Refactoring municipal infl. initilaisation
Browse files Browse the repository at this point in the history
  • Loading branch information
pbukva committed Oct 27, 2023
1 parent c452c9e commit 5fe6975
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ func (app *App) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.Res
return app.mm.InitGenesis(ctx, app.appCodec, genesisState)
}

// LoadHeight loads a particular t eight
// LoadHeight loads a particular height
func (app *App) LoadHeight(height int64) error {
return app.LoadVersion(height)
}
Expand Down Expand Up @@ -788,9 +788,10 @@ func (app *App) RegisterUpgradeHandlers(cfg module.Configurator) {
}

minter := app.MintKeeper.GetMinter(ctx)
municipalInflation := minttypes.NewMunicipalInflation(municipalInflationTargetAddress, inflation)
minter.MunicipalInflation = []*minttypes.MunicipalInflationPair{
{Denom: "nanomobx", Inflation: minttypes.NewMunicipalInflation("fetch1n8d5466h8he33uedc0vsgtahal0mrz55glre03", inflation)},
{Denom: "nanonomx", Inflation: minttypes.NewMunicipalInflation("fetch1n8d5466h8he33uedc0vsgtahal0mrz55glre03", inflation)},
{Denom: "nanomobx", Inflation: municipalInflation},
{Denom: nomxDenom, Inflation: municipalInflation},
}

app.MintKeeper.SetMinter(ctx, minter)
Expand Down

0 comments on commit 5fe6975

Please sign in to comment.