@ethersproject/providers
Advanced tools
Comparing version 5.4.1 to 5.4.2
@@ -1,2 +0,2 @@ | ||
export declare const version = "providers/5.4.1"; | ||
export declare const version = "providers/5.4.2"; | ||
//# sourceMappingURL=_version.d.ts.map |
@@ -1,2 +0,2 @@ | ||
export const version = "providers/5.4.1"; | ||
export const version = "providers/5.4.2"; | ||
//# sourceMappingURL=_version.js.map |
@@ -66,2 +66,8 @@ "use strict"; | ||
break; | ||
case "matic": | ||
host = "polygon-mainnet.g.alchemy.com/v2/"; | ||
break; | ||
case "maticmum": | ||
host = "polygon-mumbai.g.alchemy.com/v2/"; | ||
break; | ||
default: | ||
@@ -68,0 +74,0 @@ logger.throwArgumentError("unsupported network", "network", arguments[0]); |
@@ -152,3 +152,3 @@ "use strict"; | ||
} | ||
if (message.match(/execution failed due to an exception/)) { | ||
if (message.match(/execution failed due to an exception|execution reverted/)) { | ||
logger.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", Logger.errors.UNPREDICTABLE_GAS_LIMIT, { | ||
@@ -155,0 +155,0 @@ error, method, transaction |
@@ -75,2 +75,8 @@ "use strict"; | ||
break; | ||
case "matic": | ||
host = "polygon-mainnet.infura.io"; | ||
break; | ||
case "maticmum": | ||
host = "polygon-mumbai.infura.io"; | ||
break; | ||
default: | ||
@@ -77,0 +83,0 @@ logger.throwError("unsupported network", Logger.errors.INVALID_ARGUMENT, { |
@@ -49,3 +49,3 @@ "use strict"; | ||
// "insufficient funds for gas * price + value + cost(data)" | ||
if (message.match(/insufficient funds/)) { | ||
if (message.match(/insufficient funds|base fee exceeds gas limit/)) { | ||
logger.throwError("insufficient funds for intrinsic transaction cost", Logger.errors.INSUFFICIENT_FUNDS, { | ||
@@ -52,0 +52,0 @@ error, method, transaction |
@@ -1,2 +0,2 @@ | ||
export declare const version = "providers/5.4.1"; | ||
export declare const version = "providers/5.4.2"; | ||
//# sourceMappingURL=_version.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.version = void 0; | ||
exports.version = "providers/5.4.1"; | ||
exports.version = "providers/5.4.2"; | ||
//# sourceMappingURL=_version.js.map |
@@ -119,2 +119,8 @@ "use strict"; | ||
break; | ||
case "matic": | ||
host = "polygon-mainnet.g.alchemy.com/v2/"; | ||
break; | ||
case "maticmum": | ||
host = "polygon-mumbai.g.alchemy.com/v2/"; | ||
break; | ||
default: | ||
@@ -121,0 +127,0 @@ logger.throwArgumentError("unsupported network", "network", arguments[0]); |
@@ -197,3 +197,3 @@ "use strict"; | ||
} | ||
if (message.match(/execution failed due to an exception/)) { | ||
if (message.match(/execution failed due to an exception|execution reverted/)) { | ||
logger.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", logger_1.Logger.errors.UNPREDICTABLE_GAS_LIMIT, { | ||
@@ -200,0 +200,0 @@ error: error, method: method, transaction: transaction |
@@ -101,2 +101,8 @@ "use strict"; | ||
break; | ||
case "matic": | ||
host = "polygon-mainnet.infura.io"; | ||
break; | ||
case "maticmum": | ||
host = "polygon-mumbai.infura.io"; | ||
break; | ||
default: | ||
@@ -103,0 +109,0 @@ logger.throwError("unsupported network", logger_1.Logger.errors.INVALID_ARGUMENT, { |
@@ -94,3 +94,3 @@ "use strict"; | ||
// "insufficient funds for gas * price + value + cost(data)" | ||
if (message.match(/insufficient funds/)) { | ||
if (message.match(/insufficient funds|base fee exceeds gas limit/)) { | ||
logger.throwError("insufficient funds for intrinsic transaction cost", logger_1.Logger.errors.INSUFFICIENT_FUNDS, { | ||
@@ -97,0 +97,0 @@ error: error, method: method, transaction: transaction |
@@ -49,3 +49,3 @@ { | ||
], | ||
"gitHead": "bde861436ebef572d04ae8a7a111b8b954b4571c", | ||
"gitHead": "0d40156fcba5be155aa5def71bcdb95b9c11d889", | ||
"keywords": [ | ||
@@ -71,5 +71,5 @@ "Ethereum", | ||
"sideEffects": false, | ||
"tarballHash": "0xb86d0db6691cc98788e03a01b985a64f530d8225fc1274d4736e2814ec64c161", | ||
"tarballHash": "0xc3c1036135564a620f72f2fdb5f5722d080d30963fd5a05ab091b5fd1b57eff8", | ||
"types": "./lib/index.d.ts", | ||
"version": "5.4.1" | ||
"version": "5.4.2" | ||
} |
@@ -1,1 +0,1 @@ | ||
export const version = "providers/5.4.1"; | ||
export const version = "providers/5.4.2"; |
@@ -73,2 +73,8 @@ "use strict"; | ||
break; | ||
case "matic": | ||
host = "polygon-mainnet.g.alchemy.com/v2/"; | ||
break; | ||
case "maticmum": | ||
host = "polygon-mumbai.g.alchemy.com/v2/"; | ||
break; | ||
default: | ||
@@ -75,0 +81,0 @@ logger.throwArgumentError("unsupported network", "network", arguments[0]); |
@@ -1214,2 +1214,3 @@ "use strict"; | ||
const tx = this.formatter.transaction(signedTransaction); | ||
if (tx.confirmations == null) { tx.confirmations = 0; } | ||
const blockNumber = await this._getInternalBlockNumber(100 + 2 * this.pollingInterval); | ||
@@ -1391,6 +1392,10 @@ try { | ||
} | ||
return this.formatter.blockWithTransactions(block); | ||
const blockWithTxs = this.formatter.blockWithTransactions(block); | ||
blockWithTxs.transactions = block.transactions.map((tx: TransactionResponse) => this._wrapTransaction(tx)); | ||
return blockWithTxs; | ||
} | ||
return this.formatter.block(block); | ||
}, { oncePoll: this }); | ||
@@ -1397,0 +1402,0 @@ } |
@@ -152,3 +152,3 @@ "use strict"; | ||
if (message.match(/execution failed due to an exception/)) { | ||
if (message.match(/execution failed due to an exception|execution reverted/)) { | ||
logger.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", Logger.errors.UNPREDICTABLE_GAS_LIMIT, { | ||
@@ -155,0 +155,0 @@ error, method, transaction |
@@ -102,2 +102,8 @@ "use strict"; | ||
break; | ||
case "matic": | ||
host = "polygon-mainnet.infura.io"; | ||
break; | ||
case "maticmum": | ||
host = "polygon-mumbai.infura.io"; | ||
break; | ||
default: | ||
@@ -104,0 +110,0 @@ logger.throwError("unsupported network", Logger.errors.INVALID_ARGUMENT, { |
@@ -52,3 +52,3 @@ "use strict"; | ||
// "insufficient funds for gas * price + value + cost(data)" | ||
if (message.match(/insufficient funds/)) { | ||
if (message.match(/insufficient funds|base fee exceeds gas limit/)) { | ||
logger.throwError("insufficient funds for intrinsic transaction cost", Logger.errors.INSUFFICIENT_FUNDS, { | ||
@@ -55,0 +55,0 @@ error, method, transaction |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1072059
16054