chore: lint-fix
This commit is contained in:
parent
7958bf189c
commit
abdaa80a96
|
@ -78,16 +78,16 @@
|
||||||
(fx/defn resolve-url
|
(fx/defn resolve-url
|
||||||
[{:keys [db]} {:keys [error? resolved-url]}]
|
[{:keys [db]} {:keys [error? resolved-url]}]
|
||||||
(when (not error?)
|
(when (not error?)
|
||||||
(let [current-url (get-current-url (get-current-browser db))
|
(let [current-url (get-current-url (get-current-browser db))
|
||||||
contains-top? (string/includes? current-url ".top")
|
contains-top? (string/includes? current-url ".top")
|
||||||
host (http/url-host current-url)]
|
host (http/url-host current-url)]
|
||||||
(when (not contains-top?)
|
(when (not contains-top?)
|
||||||
(if (and (not resolved-url) (ens/is-valid-eth-name? host))
|
(if (and (not resolved-url) (ens/is-valid-eth-name? host))
|
||||||
{:db (update db :browser/options assoc :resolving? true)
|
{:db (update db :browser/options assoc :resolving? true)
|
||||||
:browser/resolve-ens-contenthash {:chain-id (ethereum/chain-id db)
|
:browser/resolve-ens-contenthash {:chain-id (ethereum/chain-id db)
|
||||||
:ens-name host
|
:ens-name host
|
||||||
:cb resolve-ens-contenthash-callback}}
|
:cb resolve-ens-contenthash-callback}}
|
||||||
{:db (update db :browser/options assoc :url (or resolved-url current-url) :resolving? false)})))))
|
{:db (update db :browser/options assoc :url (or resolved-url current-url) :resolving? false)})))))
|
||||||
|
|
||||||
(fx/defn update-browser
|
(fx/defn update-browser
|
||||||
[{:keys [db]}
|
[{:keys [db]}
|
||||||
|
|
Loading…
Reference in New Issue