Add sub-error to gas estimate error for Ganache users (#829).

This commit is contained in:
Richard Moore 2020-05-12 22:53:16 -04:00
parent fa87417e94
commit 647fbd8cbf
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651

@ -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
});
});