From b6404e24201c25ba3ba7c79da6c73c25669784e6 Mon Sep 17 00:00:00 2001 From: uncoolzero <107518216+uncoolzero@users.noreply.github.com> Date: Mon, 6 Nov 2023 18:08:39 -0300 Subject: [PATCH] Tweaked "insufficient funds" error message --- projects/dex-ui/src/utils/parseError.ts | 2 +- projects/ui/src/constants/errors.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/dex-ui/src/utils/parseError.ts b/projects/dex-ui/src/utils/parseError.ts index b4565d56d9..697b408f28 100644 --- a/projects/dex-ui/src/utils/parseError.ts +++ b/projects/dex-ui/src/utils/parseError.ts @@ -14,7 +14,7 @@ export const ERROR_STRINGS: Record = { // Insufficient funds (< value + gasLimit * gasPrice) // - transaction: the transaction attempted - INSUFFICIENT_FUNDS: "Insufficient funds to complete the transaction.", + INSUFFICIENT_FUNDS: "Insufficient ETH to execute this transaction.", // Nonce has already been used // - transaction: the transaction attempted diff --git a/projects/ui/src/constants/errors.ts b/projects/ui/src/constants/errors.ts index 7cfd86448d..87d497c3d8 100644 --- a/projects/ui/src/constants/errors.ts +++ b/projects/ui/src/constants/errors.ts @@ -14,7 +14,7 @@ export const ERROR_STRINGS: Record = { // Insufficient funds (< value + gasLimit * gasPrice) // - transaction: the transaction attempted - INSUFFICIENT_FUNDS: 'Insufficient funds to complete the transaction.', + INSUFFICIENT_FUNDS: 'Insufficient ETH to execute this transaction.', // Nonce has already been used // - transaction: the transaction attempted