From b0f3fd47ec9c005f96c29e88cd4b0695e35bf306 Mon Sep 17 00:00:00 2001 From: = <=> Date: Mon, 13 Nov 2023 15:32:37 -0700 Subject: [PATCH] fix provenance in holochain call --- src/stores/useHolochainStore.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/stores/useHolochainStore.js b/src/stores/useHolochainStore.js index 1f0c6e1..dedffae 100644 --- a/src/stores/useHolochainStore.js +++ b/src/stores/useHolochainStore.js @@ -90,13 +90,17 @@ const makeUseHolochainStore = ({ installed_app_id, app_ws_url, is_hpos_served, h await this.signingCredentials let result = null + + const cell_id = [new Uint8Array(listify(cellId[0], (_, value) => (Number(value)))), new Uint8Array(listify(cellId[1], (_, value) => (Number(value))))] + try { result = await this.client.callZome( { zome_name, fn_name, payload, - cell_id: [new Uint8Array(listify(cellId[0], (_, value) => (Number(value)))), new Uint8Array(listify(cellId[1], (_, value) => (Number(value))))] + cell_id, + provenance: cell_id[1] }, HC_APP_TIMEOUT )