Use sha3 from cljs-web.core

This commit is contained in:
Teemu Patja 2017-08-28 23:23:06 +03:00
parent 912b780c92
commit 42aa34cfad
No known key found for this signature in database
GPG Key ID: F5B7035E6580FD4C

View File

@ -349,7 +349,7 @@
(dispatch [:save-payout-hash issue-id payout-hash]))))
(defn sig->method-id [sig]
(let [sha3 (.-sha3 js/web3)]
(let [sha3 web3/sha3]
(apply str (take 10 (sha3 sig)))))
(defn strip-0x [x]