aboutsummaryrefslogtreecommitdiff
path: root/src/operations/reserves.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/operations/reserves.ts')
-rw-r--r--src/operations/reserves.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/operations/reserves.ts b/src/operations/reserves.ts
index 463b57b6c..1f9cc3053 100644
--- a/src/operations/reserves.ts
+++ b/src/operations/reserves.ts
@@ -402,12 +402,11 @@ async function updateReserve(
return;
}
- const reqUrl = new URL("reserve/status", reserve.exchangeBaseUrl);
- reqUrl.searchParams.set("reserve_pub", reservePub);
+ const reqUrl = new URL(`reserves/${reservePub}`, reserve.exchangeBaseUrl);
let resp;
try {
resp = await ws.http.get(reqUrl.href);
- console.log("got reserve/status response", await resp.json());
+ console.log("got reserves/${RESERVE_PUB} response", await resp.json());
if (resp.status === 404) {
const m = "reserve not known to the exchange yet"
throw new OperationFailedError(m, {