diff --git a/dist/esm/index.evm.js b/dist/esm/index.evm.js index a9deff8..680f95a 100644 --- a/dist/esm/index.evm.js +++ b/dist/esm/index.evm.js @@ -132,7 +132,7 @@ class StaticJsonRpcBatchProvider extends ethers.providers.JsonRpcProvider { if(response.ok) { response.json().then((parsedJson)=>{ if(parsedJson.find((entry)=>{ - return _optionalChain$2([entry, 'optionalAccess', _ => _.error]) && [-32062].includes(_optionalChain$2([entry, 'optionalAccess', _2 => _2.error, 'optionalAccess', _3 => _3.code])) + return _optionalChain$2([entry, 'optionalAccess', _ => _.error]) && [-32062,-32016].includes(_optionalChain$2([entry, 'optionalAccess', _2 => _2.error, 'optionalAccess', _3 => _3.code])) })) { if(attempt < MAX_RETRY) { reject('Error in batch found!'); diff --git a/dist/esm/index.js b/dist/esm/index.js index 74dea39..95dbe75 100644 --- a/dist/esm/index.js +++ b/dist/esm/index.js @@ -75,7 +75,7 @@ class StaticJsonRpcBatchProvider extends ethers.providers.JsonRpcProvider { if(response.ok) { response.json().then((parsedJson)=>{ if(parsedJson.find((entry)=>{ - return _optionalChain$5([entry, 'optionalAccess', _ => _.error]) && [-32062].includes(_optionalChain$5([entry, 'optionalAccess', _2 => _2.error, 'optionalAccess', _3 => _3.code])) + return _optionalChain$5([entry, 'optionalAccess', _ => _.error]) && [-32062,-32016].includes(_optionalChain$5([entry, 'optionalAccess', _2 => _2.error, 'optionalAccess', _3 => _3.code])) })) { if(attempt < MAX_RETRY$1) { reject('Error in batch found!'); diff --git a/dist/umd/index.evm.js b/dist/umd/index.evm.js index 168f47c..8b62966 100644 --- a/dist/umd/index.evm.js +++ b/dist/umd/index.evm.js @@ -139,7 +139,7 @@ if(response.ok) { response.json().then((parsedJson)=>{ if(parsedJson.find((entry)=>{ - return _optionalChain$2([entry, 'optionalAccess', _ => _.error]) && [-32062].includes(_optionalChain$2([entry, 'optionalAccess', _2 => _2.error, 'optionalAccess', _3 => _3.code])) + return _optionalChain$2([entry, 'optionalAccess', _ => _.error]) && [-32062,-32016].includes(_optionalChain$2([entry, 'optionalAccess', _2 => _2.error, 'optionalAccess', _3 => _3.code])) })) { if(attempt < MAX_RETRY) { reject('Error in batch found!'); diff --git a/dist/umd/index.js b/dist/umd/index.js index 60d5cc7..2d535cf 100644 --- a/dist/umd/index.js +++ b/dist/umd/index.js @@ -81,7 +81,7 @@ if(response.ok) { response.json().then((parsedJson)=>{ if(parsedJson.find((entry)=>{ - return _optionalChain$5([entry, 'optionalAccess', _ => _.error]) && [-32062].includes(_optionalChain$5([entry, 'optionalAccess', _2 => _2.error, 'optionalAccess', _3 => _3.code])) + return _optionalChain$5([entry, 'optionalAccess', _ => _.error]) && [-32062,-32016].includes(_optionalChain$5([entry, 'optionalAccess', _2 => _2.error, 'optionalAccess', _3 => _3.code])) })) { if(attempt < MAX_RETRY$1) { reject('Error in batch found!'); diff --git a/package.evm.json b/package.evm.json index f698bd0..d6f8fbc 100644 --- a/package.evm.json +++ b/package.evm.json @@ -1,7 +1,7 @@ { "name": "@depay/web3-client-evm", "moduleName": "Web3Client", - "version": "10.18.15", + "version": "10.18.16", "description": "A web3 client to fetch blockchain data just like you are used to with HTTP clients.", "main": "dist/umd/index.evm.js", "module": "dist/esm/index.evm.js", diff --git a/package.json b/package.json index 597ba60..d7703d5 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@depay/web3-client", "moduleName": "Web3Client", - "version": "10.18.15", + "version": "10.18.16", "description": "A web3 client to fetch blockchain data just like you are used to with HTTP clients.", "main": "dist/umd/index.js", "module": "dist/esm/index.js", diff --git a/package.solana.json b/package.solana.json index b9a2668..8a0ef11 100644 --- a/package.solana.json +++ b/package.solana.json @@ -1,7 +1,7 @@ { "name": "@depay/web3-client-solana", "moduleName": "Web3Client", - "version": "10.18.15", + "version": "10.18.16", "description": "A web3 client to fetch blockchain data just like you are used to with HTTP clients.", "main": "dist/umd/index.solana.js", "module": "dist/esm/index.solana.js", diff --git a/src/clients/ethers/provider.js b/src/clients/ethers/provider.js index e8b0c7c..5522960 100644 --- a/src/clients/ethers/provider.js +++ b/src/clients/ethers/provider.js @@ -50,7 +50,7 @@ class StaticJsonRpcBatchProvider extends ethers.providers.JsonRpcProvider { if(response.ok) { response.json().then((parsedJson)=>{ if(parsedJson.find((entry)=>{ - return entry?.error && [-32062].includes(entry?.error?.code) + return entry?.error && [-32062,-32016].includes(entry?.error?.code) })) { if(attempt < MAX_RETRY) { reject('Error in batch found!')