wallet-core: use canonicalized base URL when querying exchange
This commit is contained in:
parent
5754f00399
commit
9cfc138e75
@ -570,7 +570,7 @@ export async function updateExchangeFromUrl(
|
|||||||
.mktx((x) => [x.exchanges, x.exchangeDetails])
|
.mktx((x) => [x.exchanges, x.exchangeDetails])
|
||||||
.runReadWrite(async (tx) => {
|
.runReadWrite(async (tx) => {
|
||||||
let exchange = await tx.exchanges.get(canonUrl);
|
let exchange = await tx.exchanges.get(canonUrl);
|
||||||
const exchangeDetails = await getExchangeDetails(tx, baseUrl);
|
const exchangeDetails = await getExchangeDetails(tx, canonUrl);
|
||||||
return { exchange, exchangeDetails };
|
return { exchange, exchangeDetails };
|
||||||
});
|
});
|
||||||
if (!exchange) {
|
if (!exchange) {
|
||||||
|
Loading…
Reference in New Issue
Block a user