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--->)}]) ,)