Skip to content

Commit

Permalink
Set epoch provisions in mint init genesis (#695)
Browse files Browse the repository at this point in the history
  • Loading branch information
sampocs authored Mar 29, 2023
1 parent 3c69e76 commit 16dee3e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion x/mint/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ import (

// InitGenesis new mint genesis.
func InitGenesis(ctx sdk.Context, keeper keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper, data *types.GenesisState) {
data.Minter.EpochProvisions = data.Params.GenesisEpochProvisions
if data.Minter.EpochProvisions.IsZero() {
data.Minter.EpochProvisions = data.Params.GenesisEpochProvisions
}
keeper.SetMinter(ctx, data.Minter)
keeper.SetParams(ctx, data.Params)

Expand Down

0 comments on commit 16dee3e

Please sign in to comment.