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 1
1
import type { ThirdwebClient } from "../client/client.js" ;
2
- import { getThirdwebDomains } from "../utils/domains.js" ;
2
+ import { getThirdwebBaseUrl } from "../utils/domains.js" ;
3
3
import { getClientFetch } from "../utils/fetch.js" ;
4
4
import { ApiError } from "./types/Errors.js" ;
5
5
import type { Token } from "./types/Token.js" ;
@@ -133,7 +133,7 @@ export async function tokens(options: tokens.Options): Promise<tokens.Result> {
133
133
options ;
134
134
135
135
const clientFetch = getClientFetch ( client ) ;
136
- const url = new URL ( `${ getThirdwebDomains ( ) . bridge } /v1/tokens` ) ;
136
+ const url = new URL ( `${ getThirdwebBaseUrl ( " bridge" ) } /v1/tokens` ) ;
137
137
138
138
if ( chainId !== null && chainId !== undefined ) {
139
139
url . searchParams . set ( "chainId" , chainId . toString ( ) ) ;
@@ -229,7 +229,7 @@ export async function add(options: add.Options): Promise<add.Result> {
229
229
const { client, chainId, tokenAddress } = options ;
230
230
231
231
const clientFetch = getClientFetch ( client ) ;
232
- const url = `${ getThirdwebDomains ( ) . bridge } /v1/tokens` ;
232
+ const url = `${ getThirdwebBaseUrl ( " bridge" ) } /v1/tokens` ;
233
233
234
234
const requestBody = {
235
235
chainId,
You can’t perform that action at this time.
0 commit comments