Skip to content

Commit

Permalink
Fix contract call for communities
Browse files Browse the repository at this point in the history
  • Loading branch information
cammellos committed Aug 23, 2023
1 parent 821e39a commit b8c9bc1
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 9 deletions.
1 change: 1 addition & 0 deletions src/status_im2/contexts/communities/discover/events.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
:other (select-keys (:communities cc) other)})}))

(rf/defn fetch-contract-communities
{:events [:fetch-contract-communities]}
[_]
{:json-rpc/call [{:method "wakuext_curatedCommunities"
:params []
Expand Down
22 changes: 16 additions & 6 deletions src/status_im2/contexts/communities/discover/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,21 @@
featured-communities
@view-type]])))

(defn f-discover
[]
(fn []
(rn/use-effect
(fn []
(rf/dispatch [:fetch-contract-communities]))
[])
(let [featured-communities (rf/sub
[:communities/featured-contract-communities])]
[rn/view
{:style (style/discover-screen-container (colors/theme-colors
colors/white
colors/neutral-95))}
[discover-screen-content featured-communities]])))

(defn discover
[]
(let [featured-communities (rf/sub [:communities/featured-contract-communities])]
[rn/view
{:style (style/discover-screen-container (colors/theme-colors
colors/white
colors/neutral-95))}
[discover-screen-content featured-communities]]))
[:f> f-discover])
6 changes: 3 additions & 3 deletions status-go-version.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"_comment": "Instead use: scripts/update-status-go.sh <rev>",
"owner": "status-im",
"repo": "status-go",
"version": "v0.163.9",
"commit-sha1": "f2f599fe867a0eba90aaa717a29bb6e99cb5749e",
"src-sha256": "0p282pv2lz5f2b0vhpcx0nj74dp5mf7hb41l12js2hxsp21sprmj"
"version": "bug/fix-contract-communities-call",
"commit-sha1": "d3a54e2f337f392b1e8e05a5ec15bc2ceb2811de",
"src-sha256": "1lrxm2dzqlbny24y1zklli59sc5aw6jcc5s8nn43mab14y28w404"
}

0 comments on commit b8c9bc1

Please sign in to comment.