Added string change to coalesce errors on some clients.
This commit is contained in:
parent
660e69db71
commit
bc5cc2e7e3
@ -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
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user