diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-10-14 02:13:06 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-10-14 02:13:06 +0200 |
commit | ab538922312a37da5ee302e34fb72af7a0f8bae7 (patch) | |
tree | b632cbc674d81f9057820098a7ad2996d1203b13 /lib/wallet/cryptoApi.ts | |
parent | 0b198e08888830890622e983445c75f947186b4c (diff) |
working refresh prototype
Diffstat (limited to 'lib/wallet/cryptoApi.ts')
-rw-r--r-- | lib/wallet/cryptoApi.ts | 16 |
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 |