Clarify what happens with GetModuleAccount method.

This commit is contained in:
Jonathan Gimeno 2020-03-05 16:36:36 +01:00
parent 60031bbc9b
commit ba099998f6
1 changed files with 2 additions and 1 deletions

View File

@ -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