Skip to content

Commit

Permalink
Correct comment (#2171)
Browse files Browse the repository at this point in the history
### Checklist
- [ ] Relevant issue is linked
- [ ] Docs updated/issue for docs created
- [ ] Added relevant tests

Blockifier is not able to calculate the class hash. Comment is
misleading. Related issue
#2134
  • Loading branch information
abulenok authored Jul 4, 2023
1 parent 10e754b commit 492928f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protostar-rust/src/cheatcodes_hint_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ fn execute_cheatcode_hint(
.expect("Failed to read contract class from json");
let contract_class = BlockifierContractClass::V1(contract_class);

// TODO(#2134) replace this. Hash should be calculated by the blockifier in the correct manner. This is just a workaround.
// TODO(#2134) replace this. Hash should be calculated in the correct manner. This is just a workaround.
let mut hasher = DefaultHasher::new();
casm_serialized.hash(&mut hasher);
let class_hash = hasher.finish();
Expand Down

0 comments on commit 492928f

Please sign in to comment.