From 8a39aef8a42f837d2d675fe8f6eb3dea9c9fb37e Mon Sep 17 00:00:00 2001 From: Lana Ferry Date: Thu, 12 Feb 2026 18:52:38 +0100 Subject: [PATCH] feat: add size_bytes to ContractState for diagnostics --- rust/src/client_api/client_events.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rust/src/client_api/client_events.rs b/rust/src/client_api/client_events.rs index 9b50472..febf791 100644 --- a/rust/src/client_api/client_events.rs +++ b/rust/src/client_api/client_events.rs @@ -760,6 +760,9 @@ pub struct ContractState { pub subscribers: u32, /// Peer IDs of nodes that are subscribed to this contract pub subscriber_peer_ids: Vec, + /// Size of the contract state in bytes + #[serde(default)] + pub size_bytes: u64, } #[derive(Serialize, Deserialize, Debug, Clone)]