[#7113] Enable EIP1102 by default

This commit is contained in:
Andrey Shovkoplyas 2018-12-24 13:33:41 +01:00
parent 583edc51f8
commit fc94abbef0
No known key found for this signature in database
GPG Key ID: EAAB7C8622D860A4
3 changed files with 8 additions and 7 deletions

View File

@ -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 "د.إ"}

View File

@ -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?]

View File

@ -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