Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vkjr committed Jul 23, 2024
1 parent e9f4f81 commit 704ed01
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
8 changes: 0 additions & 8 deletions src/status_im/contexts/wallet/common/scan_account/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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])]
Expand Down
6 changes: 1 addition & 5 deletions src/utils/address.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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))

Expand Down

0 comments on commit 704ed01

Please sign in to comment.