File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import { useEffect } from "react";
44import { trackPayEvent } from "../../../../analytics/track/pay.js" ;
55import type { Token } from "../../../../bridge/types/Token.js" ;
66import type { ThirdwebClient } from "../../../../client/client.js" ;
7- import { NATIVE_TOKEN_ADDRESS } from "../../../../constants/addresses.js" ;
87import { toUnits } from "../../../../utils/units.js" ;
98import {
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,
You can’t perform that action at this time.
0 commit comments