Skip to content

Commit

Permalink
Add ENS resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
acolytec3 committed Nov 2, 2019
1 parent 6a35157 commit e9f70d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/status_im/wallet/choose_recipient/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
(fn [{old-symbol :symbol :as old-transaction}]
(let [symbol-changed? (not= old-symbol symbol)]
(cond-> (assoc old-transaction :to address :to-name name :public-key public-key)
(ens/is-valid-eth-name? address) (assoc :to (ens/get-addr :mainnet address nil))
value (assoc :amount value)
symbol (assoc :symbol symbol)
(and gas symbol-changed?) (assoc :gas (money/bignumber gas))
Expand Down

0 comments on commit e9f70d2

Please sign in to comment.