[#7113] Enable EIP1102 by default
This commit is contained in:
parent
583edc51f8
commit
fc94abbef0
|
@ -101,11 +101,12 @@
|
|||
(merge testnet-networks mainnet-networks sidechain-networks))))
|
||||
|
||||
(defn default-account-settings []
|
||||
{:wallet {:visible-tokens {:testnet #{:STT :HND}
|
||||
:mainnet #{:SNT}
|
||||
:rinkeby #{:MOKSHA :KDO}
|
||||
:xdai #{}
|
||||
:poa #{}}}})
|
||||
{:web3-opt-in? true
|
||||
:wallet {:visible-tokens {:testnet #{:STT :HND}
|
||||
:mainnet #{:SNT}
|
||||
:rinkeby #{:MOKSHA :KDO}
|
||||
:xdai #{}
|
||||
:poa #{}}}})
|
||||
|
||||
(def currencies
|
||||
{:aed {:id :aed :code "AED" :display-name (i18n/label :t/currency-display-name-aed) :symbol "د.إ"}
|
||||
|
|
|
@ -190,7 +190,7 @@
|
|||
(let [can-go-back? (browser/can-go-back? browser)
|
||||
can-go-forward? (browser/can-go-forward? browser)
|
||||
url-original (browser/get-current-url browser)
|
||||
opt-in? (:web3-opt-in? settings)]
|
||||
opt-in? (or (nil? (:web3-opt-in? settings)) (:web3-opt-in? settings))]
|
||||
[react/view {:style styles/browser :on-layout #(reset! width (.-width (.-layout (.-nativeEvent %))))}
|
||||
[status-bar/status-bar]
|
||||
[toolbar error? url url-original browser browser-id url-editing?]
|
||||
|
|
|
@ -124,7 +124,7 @@
|
|||
[profile.components/settings-item-separator]
|
||||
[profile.components/settings-switch-item
|
||||
{:label-kw :t/web3-opt-in
|
||||
:value (:web3-opt-in? settings)
|
||||
:value (or (nil? (:web3-opt-in? settings)) (:web3-opt-in? settings))
|
||||
:action-fn #(re-frame/dispatch [:accounts.ui/web3-opt-in-mode-switched %])}]
|
||||
[profile.components/settings-item-separator]
|
||||
[profile.components/settings-item
|
||||
|
|
Loading…
Reference in New Issue