@atomiqlabs/chain-evm 1.0.0-dev.44 → 1.0.0-dev.46

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.
@@ -10,9 +10,9 @@ class JsonRpcProviderWithRetries extends ethers_1.JsonRpcProvider {
10
10
  }
11
11
  send(method, params) {
12
12
  return (0, Utils_1.tryWithRetries)(() => super.send(method, params), this.retryPolicy, e => {
13
- if (e?.error?.code != null)
14
- return false; //Error returned by the RPC
15
- return true;
13
+ return false;
14
+ // if(e?.error?.code!=null) return false; //Error returned by the RPC
15
+ // return true;
16
16
  });
17
17
  }
18
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomiqlabs/chain-evm",
3
- "version": "1.0.0-dev.44",
3
+ "version": "1.0.0-dev.46",
4
4
  "description": "EVM specific base implementation",
5
5
  "main": "./dist/index.js",
6
6
  "types:": "./dist/index.d.ts",
@@ -18,8 +18,9 @@ export class JsonRpcProviderWithRetries extends JsonRpcProvider {
18
18
 
19
19
  send(method: string, params: Array<any> | Record<string, any>): Promise<any> {
20
20
  return tryWithRetries(() => super.send(method, params), this.retryPolicy, e => {
21
- if(e?.error?.code!=null) return false; //Error returned by the RPC
22
- return true;
21
+ return false;
22
+ // if(e?.error?.code!=null) return false; //Error returned by the RPC
23
+ // return true;
23
24
  });
24
25
  }
25
26