From 4ff5fe895bbe9501ef1c08417ce05d03f9df76fd Mon Sep 17 00:00:00 2001 From: Rostyslav Tyshko Date: Thu, 3 Apr 2025 18:37:36 -0400 Subject: [PATCH] fix bug --- storage/src/sc_db_utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/src/sc_db_utils.rs b/storage/src/sc_db_utils.rs index 593795b..df30cc9 100644 --- a/storage/src/sc_db_utils.rs +++ b/storage/src/sc_db_utils.rs @@ -49,7 +49,7 @@ pub fn produce_blob_list_from_sc_public_state( let ser_data = serde_json::to_vec(state)?; //`ToDo` Replace with `next_chunk` usage, when feature stabilizes in Rust - for i in 0..(ser_data.len() / SC_DATA_BLOB_SIZE) { + for i in 0..=(ser_data.len() / SC_DATA_BLOB_SIZE) { let next_chunk: Vec; if (i + 1) * SC_DATA_BLOB_SIZE < ser_data.len() {