@ethersproject/abstract-signer
Advanced tools
Comparing version 5.0.4 to 5.0.5
@@ -1,1 +0,1 @@ | ||
export declare const version = "abstract-signer/5.0.4"; | ||
export declare const version = "abstract-signer/5.0.5"; |
@@ -1,2 +0,2 @@ | ||
export const version = "abstract-signer/5.0.4"; | ||
export const version = "abstract-signer/5.0.5"; | ||
//# sourceMappingURL=_version.js.map |
@@ -18,2 +18,7 @@ "use strict"; | ||
]; | ||
const forwardErrors = [ | ||
Logger.errors.INSUFFICIENT_FUNDS, | ||
Logger.errors.NONCE_EXPIRED, | ||
Logger.errors.REPLACEMENT_UNDERPRICED, | ||
]; | ||
// Sub-Class Notes: | ||
@@ -141,2 +146,5 @@ // - A Signer MUST always make sure, that if present, the "from" field | ||
tx.gasLimit = this.estimateGas(tx).catch((error) => { | ||
if (forwardErrors.indexOf(error.code) >= 0) { | ||
throw error; | ||
} | ||
return logger.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", Logger.errors.UNPREDICTABLE_GAS_LIMIT, { | ||
@@ -143,0 +151,0 @@ error: error, |
@@ -1,1 +0,1 @@ | ||
export declare const version = "abstract-signer/5.0.4"; | ||
export declare const version = "abstract-signer/5.0.5"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.version = "abstract-signer/5.0.4"; | ||
exports.version = "abstract-signer/5.0.5"; | ||
//# sourceMappingURL=_version.js.map |
@@ -59,2 +59,7 @@ "use strict"; | ||
]; | ||
var forwardErrors = [ | ||
logger_1.Logger.errors.INSUFFICIENT_FUNDS, | ||
logger_1.Logger.errors.NONCE_EXPIRED, | ||
logger_1.Logger.errors.REPLACEMENT_UNDERPRICED, | ||
]; | ||
// Sub-Class Notes: | ||
@@ -240,2 +245,5 @@ // - A Signer MUST always make sure, that if present, the "from" field | ||
tx.gasLimit = this.estimateGas(tx).catch(function (error) { | ||
if (forwardErrors.indexOf(error.code) >= 0) { | ||
throw error; | ||
} | ||
return logger.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", logger_1.Logger.errors.UNPREDICTABLE_GAS_LIMIT, { | ||
@@ -242,0 +250,0 @@ error: error, |
@@ -30,5 +30,5 @@ { | ||
}, | ||
"tarballHash": "0x63dce90d05ad50bcaae39d4a18f6b64b5194b03ff445543f49f6de4b2df08fd1", | ||
"tarballHash": "0x01b03b3690c98369da51c196e581f04693c08365805bb6e036ec3fce8e58fa08", | ||
"types": "./lib/index.d.ts", | ||
"version": "5.0.4" | ||
"version": "5.0.5" | ||
} |
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
43029
608