Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
:contract/on-tweet-loaded
(reg-event-db
:contract/on-tweet-loaded
interceptors
(fn [db [tweet]]
(update db :tweets conj (merge (select-keys tweet [:author-address :text :name])
{:date (u/big-number->date-time (:date tweet))
:tweet-key (.toNumber (:tweet-key tweet))}))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment