bug #4381 - fixed regression in wallet qr code scanner caused by network updates

Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
This commit is contained in:
Goran Jovic 2018-05-22 17:37:39 +02:00 committed by Igor Mandrigin
parent 19788619ae
commit 5f430d2cc8
No known key found for this signature in database
GPG Key ID: 4A0EDDE26E66BC8B
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@
:wallet/fill-request-from-url :wallet/fill-request-from-url
(fn [{{:keys [network] :as db} :db} [_ data]] (fn [{{:keys [network] :as db} :db} [_ data]]
(let [{:keys [view-id]} db (let [{:keys [view-id]} db
current-chain-id (get-in constants/default-networks [network :raw-config :NetworkId]) current-chain-id (get-in constants/default-networks [network :config :NetworkId])
{:keys [address chain-id] :as details} (extract-details data current-chain-id) {:keys [address chain-id] :as details} (extract-details data current-chain-id)
valid-network? (boolean (= current-chain-id chain-id))] valid-network? (boolean (= current-chain-id chain-id))]
(cond-> {:db db (cond-> {:db db