Skip to content

Commit

Permalink
Upstream 0.17.3 (#84)
Browse files Browse the repository at this point in the history
* fixed load _dict

* removed cell_slice parser
  • Loading branch information
dbaranovstonfi authored Aug 14, 2024
1 parent 3ed0518 commit 5f1fbc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ impl Cell {
if dict_loader.key_bit_len() - pp.bit_len() == 0 {
let bytes = pp.get_value_as_bytes();
let key = dict_loader.extract_key(bytes.as_slice())?;
let offset = parser.remaining_bits();
let offset = self.bit_len - parser.remaining_bits();
let cell_slice = CellSlice::new_with_offset(self, offset)?;
let value = dict_loader.extract_value(&cell_slice)?;
map.insert(key, value);
Expand Down

0 comments on commit 5f1fbc5

Please sign in to comment.