don't use beta provider for now

This commit is contained in:
Andrey Shovkoplyas 2019-01-11 17:01:14 +01:00
parent 2ec91cb789
commit 10e0ec885c
No known key found for this signature in database
GPG Key ID: EAAB7C8622D860A4
1 changed files with 8 additions and 10 deletions

View File

@ -110,16 +110,14 @@
(fn [{{:keys [web3] :as db} :db} _]
(println "WEB3" web3)
(when web3
{:db (if (exists? js/window.ethereumBeta)
db
(update db :web3-async-data
assoc
:api (.-api (.-version web3))
:network (.-network (.-version web3))
:accounts (.-accounts (.-eth web3))
:default-account (.-defaultAccount (.-eth web3))
:coinbase (.-coinbase (.-eth web3))
:default-block (.-defaultBlock (.-eth web3))))
{:db (update db :web3-async-data
assoc
:api (.-api (.-version web3))
:network (.-network (.-version web3))
:accounts (.-accounts (.-eth web3))
:default-account (.-defaultAccount (.-eth web3))
:coinbase (.-coinbase (.-eth web3))
:default-block (.-defaultBlock (.-eth web3)))
:web3-node-fx web3
:web3-coinbase-fx web3
:web3-ethereum-fx web3