From b3293c751b6cd7f4378773ebb189051a10ed6aa4 Mon Sep 17 00:00:00 2001 From: raviycoder <135521192+raviycoder@users.noreply.github.com> Date: Sat, 20 Jul 2024 12:43:10 +0530 Subject: [PATCH] resolve send error in console --- ethwallet_polygon.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ethwallet_polygon.html b/ethwallet_polygon.html index 2bed65f..35c7906 100644 --- a/ethwallet_polygon.html +++ b/ethwallet_polygon.html @@ -1531,6 +1531,9 @@ getRef("sender_balance_container").classList.add("hidden"); } catch (e) { console.error(e.message); + showTransactionResult("failed", { + description: `Insufficient ${asset.toUpperCase()} balance`, + }); const regex = /\(error=({.*?}),/; const match = e.message.match(regex); if (match && match[1]) {