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(
326
326
maxSteps : 2 ,
327
327
onramp : onrampProvider ,
328
328
onrampChainId : params . onrampChainId ,
329
- onrampTokenAddress : params . onrampTokenAddress ?? NATIVE_TOKEN_ADDRESS ,
329
+ onrampTokenAddress : params . onrampTokenAddress ,
330
330
paymentLinkId : params . paymentLinkId ,
331
331
purchaseData : params . purchaseData ,
332
332
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";
4
4
import { trackPayEvent } from "../../../../analytics/track/pay.js" ;
5
5
import type { Token } from "../../../../bridge/types/Token.js" ;
6
6
import type { ThirdwebClient } from "../../../../client/client.js" ;
7
- import { NATIVE_TOKEN_ADDRESS } from "../../../../constants/addresses.js" ;
8
7
import { toUnits } from "../../../../utils/units.js" ;
9
8
import {
10
9
type BridgePrepareRequest ,
@@ -191,7 +190,6 @@ function getBridgeParams(args: {
191
190
currency : paymentMethod . currency ,
192
191
enabled : ! ! ( destinationToken && amount && client ) ,
193
192
onramp : paymentMethod . onramp || "coinbase" ,
194
- onrampTokenAddress : NATIVE_TOKEN_ADDRESS ,
195
193
paymentLinkId : args . paymentLinkId ,
196
194
purchaseData : args . purchaseData ,
197
195
receiver,
You can’t perform that action at this time.
0 commit comments