Skip to content

Instantly share code, notes, and snippets.

@madvas
Created October 3, 2016 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save madvas/0c30b07de29af5c71994c111d2917e15 to your computer and use it in GitHub Desktop.
Save madvas/0c30b07de29af5c71994c111d2917e15 to your computer and use it in GitHub Desktop.
re-frame :blockchain/unlock-account
(reg-event-fx
:blockchain/unlock-account
interceptors
(fn [{:keys [db]} [address password]]
{:web3-fx.blockchain/fns
{:web3 (:web3 db)
:fns [[web3-personal/unlock-account address password 999999
:blockchain/account-unlocked
:log-error]]}}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment