@@ -9,7 +9,7 @@ import { isPermitSupported } from "../extensions/erc20/__generated__/IERC20Permi
99import { isTransferWithAuthorizationSupported } from "../extensions/erc20/__generated__/USDC/write/transferWithAuthorization.js" ;
1010import { getAddress } from "../utils/address.js" ;
1111import { decodePayment } from "./encode.js" ;
12- import type { facilitator as facilitatorType } from "./facilitator.js" ;
12+ import type { ThirdwebX402Facilitator } from "./facilitator.js" ;
1313import {
1414 networkToChainId ,
1515 type RequestedPaymentPayload ,
@@ -197,7 +197,7 @@ export async function decodePaymentRequest(
197197async function processPriceToAtomicAmount (
198198 price : Money | ERC20TokenAmount ,
199199 chainId : number ,
200- facilitator : ReturnType < typeof facilitatorType > ,
200+ facilitator : ThirdwebX402Facilitator ,
201201) : Promise <
202202 | { maxAmountRequired : string ; asset : ERC20TokenAmount [ "asset" ] }
203203 | { error : string }
@@ -237,7 +237,7 @@ async function processPriceToAtomicAmount(
237237
238238async function getDefaultAsset (
239239 chainId : number ,
240- facilitator : ReturnType < typeof facilitatorType > ,
240+ facilitator : ThirdwebX402Facilitator ,
241241) : Promise < ERC20TokenAmount [ "asset" ] | undefined > {
242242 const supportedAssets = await facilitator . supported ( ) ;
243243 const matchingAsset = supportedAssets . kinds . find (
0 commit comments