Skip to content

Commit

Permalink
Merge pull request #83 from okx/bugfix/ruanpc/fewer_user_proof
Browse files Browse the repository at this point in the history
fix parser bug
  • Loading branch information
RUAN0007 authored Sep 10, 2024
2 parents 595a181 + 69b3793 commit ea88bba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/zk-por-core/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ea88bba

Please sign in to comment.