aboutsummaryrefslogtreecommitdiff
path: root/src/webex/wxBackend.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-07-16 22:52:56 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-07-16 22:52:56 +0530
commit85a095fa7d4d31e1e84e5e096fa28c59f3cd1918 (patch)
treebfad4a87f540c0ae1480fd2ab80911045f7f912e /src/webex/wxBackend.ts
parentdd3a31f33dc54b475b204e15d8d0a5c5e2a70ee8 (diff)
manual withdrawalv0.7.1-dev.8v0.7.1-dev.7
Diffstat (limited to 'src/webex/wxBackend.ts')
-rw-r--r--src/webex/wxBackend.ts19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/webex/wxBackend.ts b/src/webex/wxBackend.ts
index 540c79771..126756165 100644
--- a/src/webex/wxBackend.ts
+++ b/src/webex/wxBackend.ts
@@ -32,10 +32,7 @@ import {
import {
ReturnCoinsRequest,
WalletDiagnostics,
- codecForCreateReserveRequest,
- codecForConfirmReserveRequest,
} from "../types/walletTypes";
-import { codecForAmountJson } from "../util/amounts";
import { BrowserHttpLib } from "../util/http";
import { OpenedPromise, openPromise } from "../util/promiseUtils";
import { classifyTalerUri, TalerUriType } from "../util/taleruri";
@@ -111,22 +108,6 @@ async function handleMessage(
}
return Promise.resolve({});
}
- case "create-reserve": {
- const d = {
- amount: detail.amount,
- exchange: detail.exchange,
- senderWire: detail.senderWire,
- };
- const req = codecForCreateReserveRequest().decode(d);
- return needsWallet().createReserve(req);
- }
- case "confirm-reserve": {
- const d = {
- reservePub: detail.reservePub,
- };
- const req = codecForConfirmReserveRequest().decode(d);
- return needsWallet().confirmReserve(req);
- }
case "confirm-pay": {
if (typeof detail.proposalId !== "string") {
throw Error("proposalId must be string");