@atomiqlabs/chain-evm 1.0.0-dev.44 → 1.0.0-dev.45
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,8 +10,7 @@ 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
|
|
14
|
-
return false; //Error returned by the RPC
|
|
13
|
+
// if(e?.error?.code!=null) return false; //Error returned by the RPC
|
|
15
14
|
return true;
|
|
16
15
|
});
|
|
17
16
|
}
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@ 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
|
|
21
|
+
// if(e?.error?.code!=null) return false; //Error returned by the RPC
|
|
22
22
|
return true;
|
|
23
23
|
});
|
|
24
24
|
}
|