Added string change to coalesce errors on some clients.

This commit is contained in:
Richard Moore 2021-07-23 01:52:43 -04:00
parent 660e69db71
commit bc5cc2e7e3
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651

@ -49,7 +49,7 @@ function checkError(method: string, error: any, params: any): any {
const transaction = params.transaction || params.signedTransaction;
// "insufficient funds for gas * price + value + cost(data)"
if (message.match(/insufficient funds/)) {
if (message.match(/insufficient funds|base fee exceeds gas limit/)) {
logger.throwError("insufficient funds for intrinsic transaction cost", Logger.errors.INSUFFICIENT_FUNDS, {
error, method, transaction
});