Add sub-error to gas estimate error for Ganache users (#829).
This commit is contained in:
parent
fa87417e94
commit
647fbd8cbf
@ -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
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user