Skip to content

Commit

Permalink
Added string change to coalesce errors on some clients.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Jul 23, 2021
1 parent 660e69d commit bc5cc2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/providers/src.ts/json-rpc-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
Expand Down

0 comments on commit bc5cc2e

Please sign in to comment.