File tree Expand file tree Collapse file tree 2 files changed +2
-15
lines changed
storage/provider/provider/src/providers/db Expand file tree Collapse file tree 2 files changed +2
-15
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change 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 ( & [
You can’t perform that action at this time.
0 commit comments