From a97b9698d940b5b6b094d8ebc679c58308e21f3f Mon Sep 17 00:00:00 2001 From: Rootul Patel Date: Sat, 5 Aug 2023 15:22:48 -0400 Subject: [PATCH] docs: describe need for GetModuleAccount --- x/mint/keeper/genesis.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/x/mint/keeper/genesis.go b/x/mint/keeper/genesis.go index 3f267967ca..08d29766b2 100644 --- a/x/mint/keeper/genesis.go +++ b/x/mint/keeper/genesis.go @@ -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) }