From 936eb782f9c09e3bd25f12890ec113ad29de33bf Mon Sep 17 00:00:00 2001 From: Shivek Khurana Date: Thu, 21 Mar 2024 17:57:16 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Fix=20RPC=20calls=20but=20get=20?= =?UTF-8?q?addresses=20not=20working?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/status_im/contexts/wallet/events.cljs | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/src/status_im/contexts/wallet/events.cljs b/src/status_im/contexts/wallet/events.cljs index 1a172c165fc7..59e2a3357a03 100644 --- a/src/status_im/contexts/wallet/events.cljs +++ b/src/status_im/contexts/wallet/events.cljs @@ -451,25 +451,29 @@ :name name :color color :chain-short-names chain-short-names}] - {:fx [[:json-rpc/call - [{:method "wallet_addSavedAddress" - :params [address-to-save] - :on-success on-success - :on-error on-error}]]]}))) + {:json-rpc/call + [{:method "wakuext_upsertSavedAddress" + :params [address-to-save] + :on-success on-success + :on-error on-error}]}))) (rf/reg-event-fx :wallet/get-saved-addresses (fn [_ {:keys [on-success on-error]}] {:json-rpc/call - [{:method "wallet_getSavedAddresses" + [{:method "wakuext_getSavedAddresses" :on-success on-success :on-error on-error}]})) (comment (rf/dispatch [:wallet/get-saved-addresses - {:on-success (partial prn :success) - :on-error (partial prn :error)}]) + {:on-success (partial prn :success--->) + :on-error (partial prn :error--->)}]) (rf/dispatch [:wallet/save-address - {:on-error (partial prn :error--->)}]) + {:name "Test 2" + :colorId :blue + :on-success (partial prn :success-->) + :address "0xffffffffffffffffffffffffffffffffffffff12" + :on-error (partial prn :error--->)}]) ,)