diff --git a/src/processor/snapshot/database.rs b/src/processor/snapshot/database.rs
index 8016603..bfa7888 100644
--- a/src/processor/snapshot/database.rs
+++ b/src/processor/snapshot/database.rs
@@ -52,9 +52,7 @@ impl SnapshotDB {
let processed_value = match value {
PackingType::NoCompression(v) | PackingType::Transform(v) => v,
PackingType::Add(_) | PackingType::Sub(_) => {
- let mut buffer = [0; 32];
- key.to_big_endian(&mut buffer);
- let existing_value = if let Some(log) = self.get_storage_log(&buffer)? {
+ let existing_value = if let Some(log) = self.get_storage_log(&key)? {
U256::from(log.value.to_fixed_bytes())
} else {
U256::from(0)
@@ -141,11 +139,13 @@ impl SnapshotDB {
.map_err(Into::into)
}
- pub fn get_storage_log(&self, key: &[u8]) -> Result