Skip to content

Commit

Permalink
changes as per feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
vignesha22 committed Mar 4, 2024
1 parent e9867e8 commit 1e40a91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/src/paymaster/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export class Paymaster {
};
} catch (err: any) {
if (err.message.includes('already whitelisted')) throw new Error(err);
throw new Error('Error while submitting transaction');
throw new Error('The wallet does not have enough funds or the gas price is too high at the moment. Please try again later or contact support team');
}
}

Expand All @@ -140,7 +140,7 @@ export class Paymaster {
};
} catch (err: any) {
if (err.message.includes('is not whitelisted')) throw new Error(err);
throw new Error('Error while submitting transaction');
throw new Error('The wallet does not have enough funds or the gas price is too high at the moment. Please try again later or contact support team');
}
}

Expand Down Expand Up @@ -170,7 +170,7 @@ export class Paymaster {
message: `Successfully deposited with transaction Hash ${tx.hash}`
};
} catch (err) {
throw new Error('Error while submitting transaction');
throw new Error('The wallet does not have enough funds or the gas price is too high at the moment. Please try again later or contact support team');
}
}
}

0 comments on commit 1e40a91

Please sign in to comment.