diff options
Diffstat (limited to 'src/operations/withdraw.ts')
-rw-r--r-- | src/operations/withdraw.ts | 2 |
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`); |