@faremeter/payment-evm 0.11.1 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/src/exact/client.js
CHANGED
|
@@ -11,7 +11,7 @@ export function createPaymentHandler(wallet, opts = {}) {
|
|
|
11
11
|
throw new Error(`Couldn't look up USDC information on network '${x402Network}'`);
|
|
12
12
|
}
|
|
13
13
|
const { isMatchingRequirement } = generateMatcher(x402Network, assetInfo.address);
|
|
14
|
-
return async function handlePayment(
|
|
14
|
+
return async function handlePayment(_context, accepts) {
|
|
15
15
|
const compatibleRequirements = accepts.filter(isMatchingRequirement);
|
|
16
16
|
return compatibleRequirements.map((requirements) => ({
|
|
17
17
|
requirements,
|