Skip to content

Commit

Permalink
use calculateAddressFromPublicKeyAsync
Browse files Browse the repository at this point in the history
  • Loading branch information
maeda committed Aug 19, 2020
1 parent a3d5d46 commit dfd57be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/clj/tsca_webapp/aii.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

(defmacro defcommand [name args & body]
`(defn- ~name ~args (-> ~@body
(cljs.core/js->clj :keywordize-keys true)
(js/Promise.resolve))))
(js/Promise.resolve)
(.then #(cljs.core/js->clj % :keywordize-keys true)))))


2 changes: 1 addition & 1 deletion src/cljs/tsca_webapp/aii/effects.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
(aii.Proto0.forgeOperation js-ops-model))

(defcommand calculate-address-from-public-key [public-key]
(aii.TezosUtilities.calculateAddressFromPublicKey public-key))
(aii.TezosUtilities.calculateAddressFromPublicKeyAsync public-key))

(defcommand get-spell-verifier [sahash]
(aii.Proto0.getSpellVerifier #js {:sahash sahash}))
Expand Down

0 comments on commit dfd57be

Please sign in to comment.