mirror of
				https://github.com/0glabs/0g-chain.git
				synced 2025-10-31 16:37:54 +00:00 
			
		
		
		
	add name param to query (#689)
This commit is contained in:
		
							parent
							
								
									9a389e0a0f
								
							
						
					
					
						commit
						6e6ed69383
					
				| @ -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) | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Denali Marsh
						Denali Marsh