From dfd57bee346f9aa11dee804083c69ea0c021b0b4 Mon Sep 17 00:00:00 2001 From: maeda Date: Wed, 19 Aug 2020 20:14:10 +0900 Subject: [PATCH] use calculateAddressFromPublicKeyAsync --- src/clj/tsca_webapp/aii.clj | 4 ++-- src/cljs/tsca_webapp/aii/effects.cljs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/clj/tsca_webapp/aii.clj b/src/clj/tsca_webapp/aii.clj index 4a50c60..ad9c77c 100644 --- a/src/clj/tsca_webapp/aii.clj +++ b/src/clj/tsca_webapp/aii.clj @@ -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))))) diff --git a/src/cljs/tsca_webapp/aii/effects.cljs b/src/cljs/tsca_webapp/aii/effects.cljs index 53f6010..3807c62 100644 --- a/src/cljs/tsca_webapp/aii/effects.cljs +++ b/src/cljs/tsca_webapp/aii/effects.cljs @@ -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}))