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}))