From 7727bae49ad3855b15dfce216acd8c6dbeb38813 Mon Sep 17 00:00:00 2001 From: Vaclav Barta Date: Mon, 22 Apr 2024 08:42:53 +0200 Subject: [PATCH] reverted key endianness (#91) --- state-reconstruct-fetcher/src/types/common.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/state-reconstruct-fetcher/src/types/common.rs b/state-reconstruct-fetcher/src/types/common.rs index 81f7fae..cff7255 100644 --- a/state-reconstruct-fetcher/src/types/common.rs +++ b/state-reconstruct-fetcher/src/types/common.rs @@ -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 {