Skip to content

Commit aea2245

Browse files
committed
chore: remove onrampTokenAddress set to ETH
1 parent 1387337 commit aea2245

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

packages/thirdweb/src/pay/buyWithFiat/getQuote.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ export async function getBuyWithFiatQuote(
326326
maxSteps: 2,
327327
onramp: onrampProvider,
328328
onrampChainId: params.onrampChainId,
329-
onrampTokenAddress: params.onrampTokenAddress ?? NATIVE_TOKEN_ADDRESS,
329+
onrampTokenAddress: params.onrampTokenAddress,
330330
paymentLinkId: params.paymentLinkId,
331331
purchaseData: params.purchaseData,
332332
receiver: params.toAddress, // force onramp to native token to avoid missing gas issues

packages/thirdweb/src/react/web/ui/Bridge/QuoteLoader.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { useEffect } from "react";
44
import { trackPayEvent } from "../../../../analytics/track/pay.js";
55
import type { Token } from "../../../../bridge/types/Token.js";
66
import type { ThirdwebClient } from "../../../../client/client.js";
7-
import { NATIVE_TOKEN_ADDRESS } from "../../../../constants/addresses.js";
87
import { toUnits } from "../../../../utils/units.js";
98
import {
109
type BridgePrepareRequest,
@@ -191,7 +190,6 @@ function getBridgeParams(args: {
191190
currency: paymentMethod.currency,
192191
enabled: !!(destinationToken && amount && client),
193192
onramp: paymentMethod.onramp || "coinbase",
194-
onrampTokenAddress: NATIVE_TOKEN_ADDRESS,
195193
paymentLinkId: args.paymentLinkId,
196194
purchaseData: args.purchaseData,
197195
receiver,

0 commit comments

Comments
 (0)