parent
ad5539addd
commit
fb92b8174b
|
@ -203,9 +203,12 @@
|
||||||
(if (and error (string? error) (not (string/blank? error))) ;; ignore error here, error will be handled in :transaction-failed
|
(if (and error (string? error) (not (string/blank? error))) ;; ignore error here, error will be handled in :transaction-failed
|
||||||
{:db db'}
|
{:db db'}
|
||||||
(merge
|
(merge
|
||||||
{:db (-> db'
|
{:db (cond-> db'
|
||||||
|
(= method constants/web3-send-transaction)
|
||||||
(assoc-in [:wallet :transactions hash] (prepare-unconfirmed-transaction db now hash id))
|
(assoc-in [:wallet :transactions hash] (prepare-unconfirmed-transaction db now hash id))
|
||||||
|
true
|
||||||
(update-in [:wallet :transactions-unsigned] dissoc id)
|
(update-in [:wallet :transactions-unsigned] dissoc id)
|
||||||
|
true
|
||||||
(update-in [:wallet :send-transaction] merge clear-send-properties))}
|
(update-in [:wallet :send-transaction] merge clear-send-properties))}
|
||||||
(if modal?
|
(if modal?
|
||||||
(cond-> {:dispatch [:navigate-back]}
|
(cond-> {:dispatch [:navigate-back]}
|
||||||
|
|
Loading…
Reference in New Issue