Skip to content

Commit c3beea7

Browse files
committed
insufficient funds error message
1 parent 78eb918 commit c3beea7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/utils/error.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,7 @@ export const isReplacementGasFeeTooLow = (error: unknown) => {
3939
export const isInsufficientFundsError = (error: unknown) => {
4040
const message = _parseMessage(error);
4141
if (message) {
42-
return (
43-
message.includes("insufficient funds for gas * price + value") ||
44-
message.includes("insufficient funds for intrinsic transaction cost")
45-
);
42+
return message.includes("insufficient funds");
4643
}
4744
return isEthersErrorCode(error, ethers.errors.INSUFFICIENT_FUNDS);
4845
};

0 commit comments

Comments
 (0)