We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78eb918 commit c3beea7Copy full SHA for c3beea7
src/utils/error.ts
@@ -39,10 +39,7 @@ export const isReplacementGasFeeTooLow = (error: unknown) => {
39
export const isInsufficientFundsError = (error: unknown) => {
40
const message = _parseMessage(error);
41
if (message) {
42
- return (
43
- message.includes("insufficient funds for gas * price + value") ||
44
- message.includes("insufficient funds for intrinsic transaction cost")
45
- );
+ return message.includes("insufficient funds");
46
}
47
return isEthersErrorCode(error, ethers.errors.INSUFFICIENT_FUNDS);
48
};
0 commit comments