@paynodelabs/sdk-js 2.2.2 → 2.2.3

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.
Files changed (2) hide show
  1. package/dist/client.js +2 -2
  2. package/package.json +1 -1
package/dist/client.js CHANGED
@@ -23,12 +23,12 @@ class PayNodeAgentClient {
23
23
  this.rpcUrls = Array.isArray(rpcUrls) ? rpcUrls : [rpcUrls];
24
24
  this.maxRetries = maxRetries;
25
25
  const configs = this.rpcUrls.map((url, index) => ({
26
- provider: new ethers_1.ethers.JsonRpcProvider(url),
26
+ provider: new ethers_1.ethers.JsonRpcProvider(url, undefined, { staticNetwork: true }),
27
27
  priority: index,
28
28
  weight: 1,
29
29
  stallTimeout: 3000
30
30
  }));
31
- this.provider = new ethers_1.ethers.FallbackProvider(configs);
31
+ this.provider = new ethers_1.ethers.FallbackProvider(configs, undefined, { quorum: 1 });
32
32
  this.wallet = new ethers_1.ethers.Wallet(privateKey, this.provider);
33
33
  }
34
34
  async _fetchWithRetry(url, options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paynodelabs/sdk-js",
3
- "version": "2.2.2",
3
+ "version": "2.2.3",
4
4
  "description": "The official JavaScript/TypeScript SDK for PayNode x402 protocol on Base L2.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",