From edb26b16354afd707e5d03e174c4cc809b951c4f Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Tue, 6 Aug 2019 19:11:56 -0400 Subject: [PATCH] Updated gas estimate failure messaging to include that the tx may simple be causing a revert. --- packages/abstract-signer/src.ts/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/abstract-signer/src.ts/index.ts b/packages/abstract-signer/src.ts/index.ts index 2cc41491d..77d23f13f 100644 --- a/packages/abstract-signer/src.ts/index.ts +++ b/packages/abstract-signer/src.ts/index.ts @@ -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 }); });