From 6e6ed69383ee086008dcc4fa6ee535b90ee67e26 Mon Sep 17 00:00:00 2001 From: Denali Marsh Date: Wed, 14 Oct 2020 16:34:31 +0200 Subject: [PATCH] add name param to query (#689) --- x/harvest/keeper/querier.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/harvest/keeper/querier.go b/x/harvest/keeper/querier.go index a6a7e3bb..688d87ef 100644 --- a/x/harvest/keeper/querier.go +++ b/x/harvest/keeper/querier.go @@ -51,7 +51,7 @@ func queryGetModAccounts(ctx sdk.Context, req abci.RequestQuery, k Keeper) ([]by } var accs []supplyexported.ModuleAccountI if len(params.Name) > 0 { - acc := k.supplyKeeper.GetModuleAccount(ctx, types.LPAccount) + acc := k.supplyKeeper.GetModuleAccount(ctx, params.Name) accs = append(accs, acc) } else { acc := k.supplyKeeper.GetModuleAccount(ctx, types.ModuleAccountName)