From b8d81a4c8abc056e74bf3009f27b3de070b65f44 Mon Sep 17 00:00:00 2001 From: clawbot Date: Sun, 1 Mar 2026 05:11:54 -0800 Subject: [PATCH] fix: etherscan label check runs for contracts, UI displays etherscan-phishing warnings Bug 1: getFullWarnings returned early for contract addresses, skipping checkEtherscanLabel. Restructured to use isContract flag so the Etherscan check runs for all addresses (contracts are often the most dangerous). Bug 2: confirmTx.js only handled 'contract' and 'new-address' warning types, silently discarding 'etherscan-phishing'. Added confirm-etherscan-warning HTML element and handler in the async warnings loop. Style: converted inline style attributes on phishing warning banners (approve-tx, approve-sign, approve-site) to Tailwind utility classes (bg-red-100 text-red-800 border-2 border-red-600 rounded-md). --- src/popup/index.html | 36 +++++++++++++++-------------------- src/popup/views/confirmTx.js | 4 ++++ src/shared/addressWarnings.js | 33 ++++++++++++++++++-------------- 3 files changed, 38 insertions(+), 35 deletions(-) diff --git a/src/popup/index.html b/src/popup/index.html index 81e008d..eb41ce0 100644 --- a/src/popup/index.html +++ b/src/popup/index.html @@ -630,6 +630,18 @@ here are permanently destroyed and cannot be recovered. +
Transaction Request