fix_:parse route response (#21091)

Co-authored-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
This commit is contained in:
frank 2024-08-20 21:50:12 +08:00 committed by GitHub
parent 215e516b2b
commit 7b34a4fb1b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 6 deletions

View File

@ -518,8 +518,8 @@
(rf/reg-event-fx
:wallet/handle-suggested-routes
(fn [_ data]
(if-let [{:keys [code details]} (-> data :ErrorResponse first)]
(fn [_ [data]]
(if-let [{:keys [code details]} (-> data :ErrorResponse)]
(let [error-message (if (= code "0") "An error occurred" details)]
(log/error "failed to get suggested routes (async)"
{:event :wallet/handle-suggested-routes
@ -531,7 +531,6 @@
candidates-fix (comp ->old-route-paths
remove-invalid-bonder-fees-routes)
routes (-> data
(first)
(data-store/rpc->suggested-routes)
(update :best best-routes-fix)
(update :candidates candidates-fix))]

View File

@ -3,7 +3,7 @@
"_comment": "Instead use: scripts/update-status-go.sh <rev>",
"owner": "status-im",
"repo": "status-go",
"version": "v0.184.46",
"commit-sha1": "9e7d13039e50eeb815e7fa7082080d2ec5c81493",
"src-sha256": "02f8s7bfq8wavdkqg4wpraan4j3vi1p8h1r22ngzp9nxfwjif8xr"
"version": "v0.184.47",
"commit-sha1": "83aa01c7daf69d518e624fc584ea22ca27b34b73",
"src-sha256": "07gqijx652ap0lf0kvcpd0lxx5x58air19pxgjawwymq2b8kly16"
}