Skip to content

Commit 59d8e16

Browse files
committed
wip
1 parent deadc95 commit 59d8e16

File tree

2 files changed

+2
-15
lines changed
  • crates
    • storage/provider/provider/src/providers/db
    • sync/stage/src

2 files changed

+2
-15
lines changed

crates/storage/provider/provider/src/providers/db/trie.rs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -123,18 +123,5 @@ fn contract_state_leaf_hash(
123123

124124
let storage_root = contract_leaf.storage_root.expect("root need to set");
125125

126-
let root = compute_contract_state_hash(&class_hash, &storage_root, &nonce);
127-
128-
if block_number >= 6481 {
129-
println!("----------------------------------------");
130-
println!("block {block_number}");
131-
println!("address: {address}");
132-
println!("class hash : {class_hash:#x}");
133-
println!("nonce : {nonce:#x}");
134-
println!("storage root : {storage_root:#x}");
135-
println!("Contract state hash: {root}");
136-
println!("----------------------------------------");
137-
}
138-
139-
root
126+
compute_contract_state_hash(&class_hash, &storage_root, &nonce)
140127
}

crates/sync/stage/src/trie.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ where
7575
"Computed classes trie root."
7676
);
7777

78-
let computed_state_root = if dbg!(computed_class_trie_root == Felt::ZERO) {
78+
let computed_state_root = if computed_class_trie_root == Felt::ZERO {
7979
computed_contract_trie_root
8080
} else {
8181
Poseidon::hash_array(&[

0 commit comments

Comments
 (0)