Skip to content

Commit 50c6c19

Browse files
authored
[SDK] Fix: Bridge.tokens domain (#7815)
1 parent e114b2c commit 50c6c19

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/thirdweb/src/bridge/Token.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { ThirdwebClient } from "../client/client.js";
2-
import { getThirdwebDomains } from "../utils/domains.js";
2+
import { getThirdwebBaseUrl } from "../utils/domains.js";
33
import { getClientFetch } from "../utils/fetch.js";
44
import { ApiError } from "./types/Errors.js";
55
import type { Token } from "./types/Token.js";
@@ -133,7 +133,7 @@ export async function tokens(options: tokens.Options): Promise<tokens.Result> {
133133
options;
134134

135135
const clientFetch = getClientFetch(client);
136-
const url = new URL(`${getThirdwebDomains().bridge}/v1/tokens`);
136+
const url = new URL(`${getThirdwebBaseUrl("bridge")}/v1/tokens`);
137137

138138
if (chainId !== null && chainId !== undefined) {
139139
url.searchParams.set("chainId", chainId.toString());
@@ -229,7 +229,7 @@ export async function add(options: add.Options): Promise<add.Result> {
229229
const { client, chainId, tokenAddress } = options;
230230

231231
const clientFetch = getClientFetch(client);
232-
const url = `${getThirdwebDomains().bridge}/v1/tokens`;
232+
const url = `${getThirdwebBaseUrl("bridge")}/v1/tokens`;
233233

234234
const requestBody = {
235235
chainId,

0 commit comments

Comments
 (0)