Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
:contract/settings-loaded
(reg-event-db
:contract/settings-loaded
interceptors
(fn [db [[max-name-length max-tweet-length]]]
(assoc db :settings {:max-name-length (.toNumber max-name-length)
:max-tweet-length (.toNumber max-tweet-length)})))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment