Skip to content

Commit

Permalink
Add sub-error to gas estimate error for Ganache users (#829).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed May 13, 2020
1 parent fa87417 commit 647fbd8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/abstract-signer/src.ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ export abstract class Signer {
if (tx.gasLimit == null) {
tx.gasLimit = this.estimateGas(tx).catch((error) => {
return logger.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", Logger.errors.UNPREDICTABLE_GAS_LIMIT, {
error: error,
tx: tx
});
});
Expand Down

0 comments on commit 647fbd8

Please sign in to comment.