Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport signed zome call #85

Merged
merged 1 commit into from
Jun 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/app_websocket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::{
Expand Down Expand Up @@ -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<ExternIO> {
let app_request = AppRequest::CallZome(Box::new(call));
let response = self.inner.send(app_request).await?;

match response {
Expand Down
Loading