Point network to correct current-network

Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
acolytec3 2019-10-14 20:19:46 -04:00 committed by Andrey Shovkoplyas
parent e88472a0e0
commit 2ddfcd4f88
No known key found for this signature in database
GPG Key ID: EAAB7C8622D860A4
1 changed files with 2 additions and 2 deletions

View File

@ -90,8 +90,8 @@
(fx/defn fill-request-from-url
{:events [:wallet/fill-request-from-url]}
[{{:keys [network] :wallet/keys [all-tokens] :as db} :db} data origin]
(let [current-chain-id (get-in constants/default-networks [network :config :NetworkId])
[{{:networks/keys [current-network] :wallet/keys [all-tokens] :as db} :db} data origin]
(let [current-chain-id (get-in constants/default-networks [current-network :config :NetworkId])
{:keys [address chain-id] :as details} (extract-details data current-chain-id all-tokens)
valid-network? (boolean (= current-chain-id chain-id))
previous-state (get-in db [:wallet :send-transaction])