diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-07-16 22:52:56 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-07-16 22:52:56 +0530 |
commit | 85a095fa7d4d31e1e84e5e096fa28c59f3cd1918 (patch) | |
tree | bfad4a87f540c0ae1480fd2ab80911045f7f912e /src/android | |
parent | dd3a31f33dc54b475b204e15d8d0a5c5e2a70ee8 (diff) |
manual withdrawalv0.7.1-dev.8v0.7.1-dev.7
Diffstat (limited to 'src/android')
-rw-r--r-- | src/android/index.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/android/index.ts b/src/android/index.ts index fcdbdaa6e..63d88d70b 100644 --- a/src/android/index.ts +++ b/src/android/index.ts @@ -37,6 +37,7 @@ import { WALLET_EXCHANGE_PROTOCOL_VERSION, WALLET_MERCHANT_PROTOCOL_VERSION, } from "../operations/versions"; +import { Amounts } from "../util/amounts"; // @ts-ignore: special built-in module //import akono = require("akono"); @@ -234,10 +235,9 @@ class AndroidWalletMessageHandler { const wallet = await this.wp.promise; return await wallet.confirmPay(args.proposalId, args.sessionId); } - case "createManualReserve": { + case "acceptManualWithdrawal": { const wallet = await this.wp.promise; - const res = await wallet.createReserve(args); - await wallet.confirmReserve({ reservePub: res.reservePub }); + const res = await wallet.acceptManualWithdrawal(args.exchangeBaseUrl, Amounts.parseOrThrow(args.amount)); return res; } case "startTunnel": { |