From ba099998f6e564f38a0b0018e48f7e7cab6bfc06 Mon Sep 17 00:00:00 2001 From: Jonathan Gimeno Date: Thu, 5 Mar 2020 16:36:36 +0100 Subject: [PATCH] Clarify what happens with GetModuleAccount method. --- x/supply/keeper/account.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/x/supply/keeper/account.go b/x/supply/keeper/account.go index 685308cf6..fdf8f9aff 100644 --- a/x/supply/keeper/account.go +++ b/x/supply/keeper/account.go @@ -49,7 +49,8 @@ func (k Keeper) GetModuleAccountAndPermissions(ctx sdk.Context, moduleName strin return maccI, perms } -// GetModuleAccount gets the module account from the auth account store +// GetModuleAccount gets the module account from the auth account store, if the account does not +// exist in the AccountKeeper, then it is created. func (k Keeper) GetModuleAccount(ctx sdk.Context, moduleName string) exported.ModuleAccountI { acc, _ := k.GetModuleAccountAndPermissions(ctx, moduleName) return acc