From 492928ff827b4bffe6590ff0a6a40d04b84c7b2c Mon Sep 17 00:00:00 2001 From: Oleksii Bulenok <63914185+abulenok@users.noreply.github.com> Date: Tue, 4 Jul 2023 18:01:45 +0200 Subject: [PATCH] Correct comment (#2171) ### 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 https://github.com/software-mansion/protostar/issues/2134 --- protostar-rust/src/cheatcodes_hint_processor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protostar-rust/src/cheatcodes_hint_processor.rs b/protostar-rust/src/cheatcodes_hint_processor.rs index 6e382985c..5c695bb36 100644 --- a/protostar-rust/src/cheatcodes_hint_processor.rs +++ b/protostar-rust/src/cheatcodes_hint_processor.rs @@ -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();