From a71dc884070422f5a9af349d8d3ddabec3630ac3 Mon Sep 17 00:00:00 2001 From: Sosthene Date: Fri, 13 Jun 2025 16:12:13 +0200 Subject: [PATCH] Display all commitments for each process --- src/components/ProcessesViewer.tsx | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/src/components/ProcessesViewer.tsx b/src/components/ProcessesViewer.tsx index 5f0da7c..31f6f4b 100644 --- a/src/components/ProcessesViewer.tsx +++ b/src/components/ProcessesViewer.tsx @@ -4,6 +4,7 @@ import './ProcessesViewer.css'; interface BlockState { commited_in: string; state_id: string; + pcd_commitment: Record; public_data: { memberPublicName?: string | number[]; pairedAddresses?: string[] | number[]; @@ -128,19 +129,29 @@ function ProcessesViewer({ processes, myProcesses }: ProcessesViewerProps) { {isExpanded && (
- ID complet: {processId} + Process ID: {processId}
{process.states.map((state, index) => { - if (index === stateCount - 1) return null; + if (index === stateCount) return null; return (

État {index + 1}

- State ID: {state.state_id} + TransactionId: {state.commited_in}
- Commited dans: {state.commited_in} + Empreinte totale de l'état: {state.state_id} +
+
+ Empreinte par information: +
    + {Object.entries(state.pcd_commitment).map(([key, value]) => ( +
    + {key}: {value} +
    + ))} +