aboutsummaryrefslogtreecommitdiff
path: root/lib/wallet/cryptoApi.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/wallet/cryptoApi.ts')
-rw-r--r--lib/wallet/cryptoApi.ts16
1 files changed, 9 insertions, 7 deletions
diff --git a/lib/wallet/cryptoApi.ts b/lib/wallet/cryptoApi.ts
index 88b82ae3b..40be13732 100644
--- a/lib/wallet/cryptoApi.ts
+++ b/lib/wallet/cryptoApi.ts
@@ -114,7 +114,8 @@ export class CryptoApi {
handleWorkerError(ws: WorkerState, e: ErrorEvent) {
if (ws.currentWorkItem) {
- console.error(`error in worker during ${ws.currentWorkItem!.operation}`, e);
+ console.error(`error in worker during ${ws.currentWorkItem!.operation}`,
+ e);
} else {
console.error("error in worker", e);
}
@@ -243,16 +244,17 @@ export class CryptoApi {
return this.doRpc("rsaUnblind", 4, sig, bk, pk);
}
- createWithdrawSession(kappa: number, meltCoin: Coin,
- newCoinDenoms: Denomination[],
- meltAmount: AmountJson,
- meltFee: AmountJson): Promise<RefreshSession> {
- return this.doRpc("createWithdrawSession",
+ createRefreshSession(exchangeBaseUrl: string,
+ kappa: number,
+ meltCoin: Coin,
+ newCoinDenoms: Denomination[],
+ meltFee: AmountJson): Promise<RefreshSession> {
+ return this.doRpc("createRefreshSession",
4,
+ exchangeBaseUrl,
kappa,
meltCoin,
newCoinDenoms,
- meltAmount,
meltFee);
}
} \ No newline at end of file