Skip to content

Commit

Permalink
docs: describe need for GetModuleAccount
Browse files Browse the repository at this point in the history
  • Loading branch information
rootulp committed Aug 5, 2023
1 parent 0c55a6e commit a97b969
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions x/mint/keeper/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ func (k Keeper) InitGenesis(ctx sdk.Context, ak types.AccountKeeper, data *types
GenesisTime: &blockTime,
}
k.SetGenesisTime(ctx, gt)
// Although ak.GetModuleAccount appears to be a no-op, it actually creates a
// new module account in the x/auth account store. See the x/auth keeper for
// more details.
ak.GetModuleAccount(ctx, types.ModuleName)
}

Expand Down

0 comments on commit a97b969

Please sign in to comment.