From 704ed0127e4962b19a1e7d198f75a07e3bb71962 Mon Sep 17 00:00:00 2001 From: Volodymyr Kozieiev Date: Tue, 23 Jul 2024 12:06:25 +0100 Subject: [PATCH] minor fixes --- .../contexts/wallet/common/scan_account/view.cljs | 8 -------- src/utils/address.cljs | 6 +----- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/src/status_im/contexts/wallet/common/scan_account/view.cljs b/src/status_im/contexts/wallet/common/scan_account/view.cljs index a33a5f4a496d..907850a28e54 100644 --- a/src/status_im/contexts/wallet/common/scan_account/view.cljs +++ b/src/status_im/contexts/wallet/common/scan_account/view.cljs @@ -6,14 +6,6 @@ [utils.i18n :as i18n] [utils.re-frame :as rf])) -(comment - (def ma "ethereum:0x38cf6E0Ba4C4530735616e1Ee7ff5FbCB726fBd2@0x1") - (def sa "arb1:0x38cf6E0Ba4C4530735616e1Ee7ff5FbCB726fBd2") - (utils-address/supported-address? ma) - (utils-address/supported-address? sa) - (utils-address/supported-address->status-address sa) - (utils-address/supported-address->status-address ma)) - (defn view [] (let [{:keys [on-result]} (rf/sub [:get-screen-params])] diff --git a/src/utils/address.cljs b/src/utils/address.cljs index 933be2cfa75d..65efeccf24be 100644 --- a/src/utils/address.cljs +++ b/src/utils/address.cljs @@ -14,11 +14,6 @@ hex (str hex-prefix hex)))) -(defn naked-address - [s] - (when s - (string/replace s hex-prefix ""))) - (defn address? [address] (native-module/address? address)) @@ -92,6 +87,7 @@ (re-find constants/regx-metamask-address address)) (defn eip-3770-address? + "Checks if address follows EIP-3770 format which is default for Status" [s] (re-find constants/regx-eip-3770-address s))