@wtflabs/x402 0.0.1-beta.2 → 0.0.1-beta.4

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.
@@ -1719,11 +1719,7 @@ async function signPermit(walletClient, { owner, spender, value, deadline }, { a
1719
1719
  abi: erc20PermitABI,
1720
1720
  functionName: "name"
1721
1721
  }),
1722
- walletClient.readContract({
1723
- address: tokenAddress,
1724
- abi: erc20PermitABI,
1725
- functionName: "version"
1726
- })
1722
+ getVersion(walletClient, tokenAddress)
1727
1723
  ]);
1728
1724
  } else {
1729
1725
  throw new Error("Local account signing for permit requires a connected client");
@@ -2397,7 +2393,7 @@ function preparePaymentHeader2(from, x402Version, paymentRequirements) {
2397
2393
  signature: void 0,
2398
2394
  authorization: {
2399
2395
  owner: from,
2400
- spender: paymentRequirements.payTo,
2396
+ spender: paymentRequirements.extra?.feePayer,
2401
2397
  value: paymentRequirements.maxAmountRequired,
2402
2398
  deadline
2403
2399
  }