Updated gas estimate failure messaging to include that the tx may simple be causing a revert.

This commit is contained in:
Richard Moore 2019-08-06 19:11:56 -04:00
parent de4b2a449c
commit edb26b1635
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651

@ -171,7 +171,7 @@ export abstract class Signer {
if (tx.gasLimit == null) {
tx.gasLimit = this.estimateGas(tx).catch((error) => {
logger.throwError("unable to estimate gas; specify manually", Logger.errors.UNPREDICTABLE_GAS_LIMIT, {
logger.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", Logger.errors.UNPREDICTABLE_GAS_LIMIT, {
tx: tx
});
});