Skip to content

Commit

Permalink
reverted key endianness (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
vbar authored Apr 22, 2024
1 parent 22996b6 commit 7727bae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion state-reconstruct-fetcher/src/types/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ pub fn parse_compressed_state_diffs(
// Parse initial writes.
let num_of_initial_writes = u16::from_be_bytes(read_next_n_bytes(bytes, pointer));
for _ in 0..num_of_initial_writes {
let derived_key = U256::from_big_endian(&read_next_n_bytes::<32>(bytes, pointer));
let derived_key = U256::from_little_endian(&read_next_n_bytes::<32>(bytes, pointer));

let packing_type = read_compressed_value(bytes, pointer)?;
state_diffs.push(L2ToL1Pubdata::CompressedStateDiff {
Expand Down

0 comments on commit 7727bae

Please sign in to comment.