Point network to correct current-network
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
parent
e88472a0e0
commit
2ddfcd4f88
|
@ -90,8 +90,8 @@
|
||||||
|
|
||||||
(fx/defn fill-request-from-url
|
(fx/defn fill-request-from-url
|
||||||
{:events [:wallet/fill-request-from-url]}
|
{:events [:wallet/fill-request-from-url]}
|
||||||
[{{:keys [network] :wallet/keys [all-tokens] :as db} :db} data origin]
|
[{{:networks/keys [current-network] :wallet/keys [all-tokens] :as db} :db} data origin]
|
||||||
(let [current-chain-id (get-in constants/default-networks [network :config :NetworkId])
|
(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)
|
{:keys [address chain-id] :as details} (extract-details data current-chain-id all-tokens)
|
||||||
valid-network? (boolean (= current-chain-id chain-id))
|
valid-network? (boolean (= current-chain-id chain-id))
|
||||||
previous-state (get-in db [:wallet :send-transaction])
|
previous-state (get-in db [:wallet :send-transaction])
|
||||||
|
|
Loading…
Reference in New Issue