From 4f7dd85dbc146b2ae01fe2a2e111c13890add5dc Mon Sep 17 00:00:00 2001 From: ThetaSinner Date: Tue, 11 Jun 2024 02:51:54 +0100 Subject: [PATCH] feat: add signed zome call (#83) --- src/app_websocket.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/app_websocket.rs b/src/app_websocket.rs index a276207..df268ea 100644 --- a/src/app_websocket.rs +++ b/src/app_websocket.rs @@ -7,7 +7,7 @@ use anyhow::{anyhow, Result}; use holo_hash::AgentPubKey; use holochain_conductor_api::{ AppAuthenticationToken, AppInfo, AppRequest, AppResponse, CellInfo, NetworkInfo, - ProvisionedCell, + ProvisionedCell, ZomeCall, }; use holochain_nonce::fresh_nonce; use holochain_types::app::{ @@ -144,7 +144,11 @@ impl AppWebsocket { .await .map_err(|e| ConductorApiError::SignZomeCallError(e.to_string()))?; - let app_request = AppRequest::CallZome(Box::new(signed_zome_call)); + self.signed_call_zome(signed_zome_call).await + } + + pub async fn signed_call_zome(&self, call: ZomeCall) -> ConductorApiResult { + let app_request = AppRequest::CallZome(Box::new(call)); let response = self.inner.send(app_request).await?; match response {