  (fn [{:keys [web3 chain account-id token-addresses success-event error-event]}]
    (transactions/get-transactions chain
                                   account-id
-                                  #(re-frame/dispatch [success-event %])
+                                  #(re-frame/dispatch [success-event % account-id])
                                   #(re-frame/dispatch [error-event %]))
    (doseq [direction [:inbound :outbound]]
      (erc20/get-token-transactions web3

        (both-transfer? tx1 tx2)   (update-confirmations tx1 tx2)
        :else tx2))

(handlers/register-handler-db
 :update-transactions-success
 (fn [db [_ transactions]]
   (-> db
       (update-in [:wallet :transactions] #(merge-with dedupe-transactions % transactions))
       (assoc-in [:wallet :transactions-loading?] false))))

(handlers/register-handler-db
 :update-transactions-fail

                                   token-addresses
                                   direction
                                   account-id
                                   #(re-frame/dispatch [success-event % account-id])))))

;; TODO(oskarth): At some point we want to get list of relevant assets to get prices for
(reg-fx
