summaryrefslogtreecommitdiff
path: root/src/operations/withdraw.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-03-09 16:37:46 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-03-09 16:37:46 +0530
commit26d961ad633027f50ee402b9a7e7fa383c2b33c3 (patch)
treecfaa7a80d4c38980ddb62bd39ea61b3f87916688 /src/operations/withdraw.ts
parentbf1b350d4410cfc7c3e9ae3a717343c9ef19625a (diff)
downloadwallet-core-26d961ad633027f50ee402b9a7e7fa383c2b33c3.tar.gz
wallet-core-26d961ad633027f50ee402b9a7e7fa383c2b33c3.tar.bz2
wallet-core-26d961ad633027f50ee402b9a7e7fa383c2b33c3.zip
support exchange API version 7:0:0
Diffstat (limited to 'src/operations/withdraw.ts')
-rw-r--r--src/operations/withdraw.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/operations/withdraw.ts b/src/operations/withdraw.ts
index 3a1f3cf06..0c58f5f2f 100644
--- a/src/operations/withdraw.ts
+++ b/src/operations/withdraw.ts
@@ -197,7 +197,7 @@ async function processPlanchet(
wd.reserve_pub = planchet.reservePub;
wd.reserve_sig = planchet.withdrawSig;
wd.coin_ev = planchet.coinEv;
- const reqUrl = new URL("reserve/withdraw", exchange.baseUrl).href;
+ const reqUrl = new URL(`reserves/${planchet.reservePub}/withdraw`, exchange.baseUrl).href;
const resp = await ws.http.postJson(reqUrl, wd);
if (resp.status !== 200) {
throw Error(`unexpected status ${resp.status} for withdraw`);