summaryrefslogtreecommitdiff
path: root/src/operations/withdraw.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/operations/withdraw.ts')
-rw-r--r--src/operations/withdraw.ts14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/operations/withdraw.ts b/src/operations/withdraw.ts
index 14071be79..284743415 100644
--- a/src/operations/withdraw.ts
+++ b/src/operations/withdraw.ts
@@ -420,17 +420,19 @@ async function processPlanchet(
}
}
-export function denomSelectionInfoToState(dsi: DenominationSelectionInfo): DenomSelectionState {
+export function denomSelectionInfoToState(
+ dsi: DenominationSelectionInfo,
+): DenomSelectionState {
return {
selectedDenoms: dsi.selectedDenoms.map((x) => {
return {
count: x.count,
- denomPubHash: x.denom.denomPubHash
+ denomPubHash: x.denom.denomPubHash,
};
}),
totalCoinValue: dsi.totalCoinValue,
totalWithdrawCost: dsi.totalWithdrawCost,
- }
+ };
}
/**
@@ -617,11 +619,7 @@ export async function getExchangeWithdrawalInfo(
throw Error(`exchange ${exchangeInfo.baseUrl} wire details not available`);
}
- const selectedDenoms = await selectWithdrawalDenoms(
- ws,
- baseUrl,
- amount,
- );
+ const selectedDenoms = await selectWithdrawalDenoms(ws, baseUrl, amount);
const exchangeWireAccounts: string[] = [];
for (const account of exchangeWireInfo.accounts) {
exchangeWireAccounts.push(account.payto_uri);