From ab538922312a37da5ee302e34fb72af7a0f8bae7 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 14 Oct 2016 02:13:06 +0200 Subject: working refresh prototype --- lib/wallet/cryptoApi.ts | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'lib/wallet/cryptoApi.ts') 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 { - return this.doRpc("createWithdrawSession", + createRefreshSession(exchangeBaseUrl: string, + kappa: number, + meltCoin: Coin, + newCoinDenoms: Denomination[], + meltFee: AmountJson): Promise { + return this.doRpc("createRefreshSession", 4, + exchangeBaseUrl, kappa, meltCoin, newCoinDenoms, - meltAmount, meltFee); } } \ No newline at end of file -- cgit v1.2.3