Skip to content

Commit

Permalink
fix: error text
Browse files Browse the repository at this point in the history
  • Loading branch information
JackHamer09 committed Mar 7, 2024
1 parent 5e81e9b commit 0cc7ae5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
WALLET_CONNECT_PROJECT_ID=373a8744ceaac00934aec708a3fceea6
ANKR_TOKEN=
ANKR_TOKEN=d39966271ddadd0313304908744721c7c9c0c83e2785d73602990c8b46267f83
2 changes: 1 addition & 1 deletion composables/zksync/deposit/useFee.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default (tokens: Ref<Token[]>, balances: Ref<TokenAmount[] | undefined>)
to: params.to,
});
} catch (err) {
if (err instanceof Error && err.message.startsWith("Not enough balance for deposit.")) {
if (err instanceof Error && err.message.startsWith("Not enough balance for deposit!")) {
const match = err.message.match(/([\d\\.]+) ETH/);
if (feeToken.value && match?.length) {
const ethAmount = match[1].split(" ")?.[0];
Expand Down

0 comments on commit 0cc7ae5

Please sign in to comment.