File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/thirdweb/src/bridge Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11import type { ThirdwebClient } from "../client/client.js" ;
2- import { getThirdwebDomains } from "../utils/domains.js" ;
2+ import { getThirdwebBaseUrl } from "../utils/domains.js" ;
33import { getClientFetch } from "../utils/fetch.js" ;
44import { ApiError } from "./types/Errors.js" ;
55import 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,
You can’t perform that action at this time.
0 commit comments