Remove unused erc20-enabled flag
Signed-off-by: Eric Dvorsak <eric@dvorsak.fr>
This commit is contained in:
parent
dff107f669
commit
0b035cfad7
1
.env
1
.env
|
@ -2,7 +2,6 @@ TESTFAIRY_ENABLED=0
|
|||
STUB_STATUS_GO=0
|
||||
ETHEREUM_DEV_CLUSTER=1
|
||||
MAINNET_NETWORKS_ENABLED=1
|
||||
ERC20_ENABLED=1
|
||||
OFFLINE_INBOX_ENABLED=1
|
||||
OFFLINE_INBOX_MANY_ENABLED=1
|
||||
LOG_LEVEL=debug
|
||||
|
|
|
@ -2,7 +2,6 @@ TESTFAIRY_ENABLED=1
|
|||
STUB_STATUS_GO=0
|
||||
ETHEREUM_DEV_CLUSTER=1
|
||||
MAINNET_NETWORKS_ENABLED=1
|
||||
ERC20_ENABLED=1
|
||||
OFFLINE_INBOX_ENABLED=1
|
||||
OFFLINE_INBOX_MANY_ENABLED=0
|
||||
LOG_LEVEL=debug
|
||||
|
|
|
@ -2,7 +2,6 @@ TESTFAIRY_ENABLED=0
|
|||
STUB_STATUS_GO=0
|
||||
ETHEREUM_DEV_CLUSTER=0
|
||||
MAINNET_NETWORKS_ENABLED=0
|
||||
ERC20_ENABLED=0
|
||||
OFFLINE_INBOX_ENABLED=0
|
||||
OFFLINE_INBOX_MANY_ENABLED=0
|
||||
LOG_LEVEL=info
|
||||
|
|
|
@ -42,7 +42,6 @@ node ('macos1') {
|
|||
sh 'echo STUB_STATUS_GO=' + STUB_STATUS_GO + '>>' + '.env'
|
||||
sh 'echo ETHEREUM_DEV_CLUSTER=' + ETHEREUM_DEV_CLUSTER + '>>' + '.env'
|
||||
sh 'echo MAINNET_NETWORKS_ENABLED=' + MAINNET_NETWORKS_ENABLED + '>>' + '.env'
|
||||
sh 'echo ERC20_ENABLED=' + ERC20_ENABLED + '>>' + '.env'
|
||||
sh 'echo LOG_LEVEL=' + LOG_LEVEL + '>>' + '.env'
|
||||
sh 'echo LOG_LEVEL_STATUS_GO=' + LOG_LEVEL_STATUS_GO + '>>' + '.env'
|
||||
sh 'echo JSC_ENABLED=' + JSC_ENABLED + '>>' + '.env'
|
||||
|
|
|
@ -84,14 +84,14 @@
|
|||
|
||||
(defn- asset-section [network balance visible-tokens prices-loading? balance-loading?]
|
||||
(let [tokens (current-tokens visible-tokens network)
|
||||
assets (map #(assoc % :amount (get balance (:symbol %))) (concat [tokens/ethereum] (when config/erc20-enabled? tokens)))]
|
||||
assets (map #(assoc % :amount (get balance (:symbol %))) (concat [tokens/ethereum] tokens))]
|
||||
[react/view styles/asset-section
|
||||
[react/text {:style styles/asset-section-title} (i18n/label :t/wallet-assets)]
|
||||
[list/flat-list
|
||||
{:default-separator? true
|
||||
:data assets
|
||||
:render-fn render-asset
|
||||
:on-refresh #(re-frame/dispatch [:update-wallet (when config/erc20-enabled? (map :symbol tokens))])
|
||||
:on-refresh #(re-frame/dispatch [:update-wallet (map :symbol tokens)])
|
||||
:refreshing (boolean (or prices-loading? balance-loading?))}]]))
|
||||
|
||||
(defview wallet []
|
||||
|
|
|
@ -16,13 +16,11 @@
|
|||
;;
|
||||
;; TESTFAIRY_ENABLED - indefinite
|
||||
;; STUB_STATUS_GO - indefinite
|
||||
;; ERC20_ENABLED - until idea #3 is merged, remove in develop when ready
|
||||
;; OFFLINE_INBOX_ENABLED - TBD, tenatively until #idea 1 is merged
|
||||
|
||||
(def testfairy-enabled? (enabled? (get-config :TESTFAIRY_ENABLED)))
|
||||
(def stub-status-go? (enabled? (get-config :STUB_STATUS_GO 0)))
|
||||
(def mainnet-networks-enabled? (enabled? (get-config :MAINNET_NETWORKS_ENABLED 0)))
|
||||
(def erc20-enabled? (enabled? (get-config :ERC20_ENABLED 0)))
|
||||
(def offline-inbox-enabled? (enabled? (get-config :OFFLINE_INBOX_ENABLED 0)))
|
||||
(def offline-inbox-many-enabled? (enabled? (get-config :OFFLINE_INBOX_MANY_ENABLED 0)))
|
||||
(def log-level
|
||||
|
|
Loading…
Reference in New Issue