From 5486008bc8109b2483b7026ec3487005da11a35e Mon Sep 17 00:00:00 2001 From: Icaro Motta Date: Mon, 5 Feb 2024 23:40:24 -0300 Subject: [PATCH] Simplify schema --- .../actions/addresses_for_permissions/events.cljs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/status_im/contexts/communities/actions/addresses_for_permissions/events.cljs b/src/status_im/contexts/communities/actions/addresses_for_permissions/events.cljs index 80d880c7ea84..b7018aa478c8 100644 --- a/src/status_im/contexts/communities/actions/addresses_for_permissions/events.cljs +++ b/src/status_im/contexts/communities/actions/addresses_for_permissions/events.cljs @@ -38,7 +38,7 @@ [:map-of ?account-address [:sequential - [:map {:closed true} + [:map [:type int?] [:symbol string?] [:decimals int?] @@ -50,11 +50,9 @@ [:cofx :schema.re-frame/cofx] [:args [:schema - [:? - [:catn - [:community-id string?] - [:response ?permissioned-balances-response]]]]]] - [:map {:closed true} - [:db map?]]]) + [:catn + [:community-id string?] + [:response ?permissioned-balances-response]]]]] + map?]) (rf/reg-event-fx :communities/get-permissioned-balances-success get-permissioned-balances-success)