revert empty balance

This commit is contained in:
Florian Dold 2022-01-11 22:17:40 +01:00
parent a74cdf0529
commit dbdad96b27
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -47,10 +47,6 @@ export async function getBalancesInsideTransaction(
withdrawalGroups: typeof WalletStoresV1.withdrawalGroups; withdrawalGroups: typeof WalletStoresV1.withdrawalGroups;
}>, }>,
): Promise<BalancesResponse> { ): Promise<BalancesResponse> {
return {
balances: [],
};
const balanceStore: Record<string, WalletBalance> = {}; const balanceStore: Record<string, WalletBalance> = {};
/** /**
@ -152,9 +148,6 @@ export async function getBalancesInsideTransaction(
export async function getBalances( export async function getBalances(
ws: InternalWalletState, ws: InternalWalletState,
): Promise<BalancesResponse> { ): Promise<BalancesResponse> {
return {
balances: [],
};
logger.trace("starting to compute balance"); logger.trace("starting to compute balance");
const wbal = await ws.db const wbal = await ws.db