From 69b3793818f133133cef1ad4464c99940af7dc22 Mon Sep 17 00:00:00 2001 From: Ruan Pingcheng Date: Tue, 10 Sep 2024 15:47:03 +0800 Subject: [PATCH] fix parser bug --- crates/zk-por-core/src/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/zk-por-core/src/parser.rs b/crates/zk-por-core/src/parser.rs index bb78420..595abdc 100644 --- a/crates/zk-por-core/src/parser.rs +++ b/crates/zk-por-core/src/parser.rs @@ -200,7 +200,7 @@ impl AccountParser for FileAccountReader { let mut filled_len = 0; if self.offset < self.buffered_accounts.len() { - let filled_len = self.buffered_accounts.len() - self.offset; + filled_len = self.buffered_accounts.len() - self.offset; result[0..filled_len].clone_from_slice(&self.buffered_accounts[(self.offset)..]); } let mut missing_len = result.len() - (self.buffered_accounts.len() - self.offset);