diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-06-21 19:11:50 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-06-21 19:11:50 +0530 |
commit | 482a56a4e829db0f950180068b807977ea2fccf3 (patch) | |
tree | e362fef8557e934b13e0ff3d0c439fe30ebdf955 | |
parent | 06d9aab47c066fe162752a2dce7b3d2ea32ae470 (diff) |
manual reserve creation for Android
-rw-r--r-- | src/android/index.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/android/index.ts b/src/android/index.ts index a10236cee..4a62a0239 100644 --- a/src/android/index.ts +++ b/src/android/index.ts @@ -211,6 +211,12 @@ class AndroidWalletMessageHandler { const wallet = await this.wp.promise; return await wallet.confirmPay(args.proposalId, args.sessionId); } + case "createManualReserve": { + const wallet = await this.wp.promise; + const res = await wallet.createReserve(args); + await wallet.confirmReserve({ reservePub: res.reservePub }); + return res; + } case "startTunnel": { // this.httpLib.useNfcTunnel = true; throw Error("not implemented"); |