Skip to content

Commit

Permalink
Updated gas estimate failure messaging to include that the tx may sim…
Browse files Browse the repository at this point in the history
…ple be causing a revert.
  • Loading branch information
ricmoo committed Aug 6, 2019
1 parent de4b2a4 commit edb26b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/abstract-signer/src.ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
});
Expand Down

0 comments on commit edb26b1

Please sign in to comment.