Skip to content

Commit 3322921

Browse files
cptarturksew1
authored andcommitted
Add empty node to trace on deploy without constructor
1 parent 70e8a20 commit 3322921

File tree

1 file changed

+5
-0
lines changed
  • crates/cheatnet/src/runtime_extensions/native

1 file changed

+5
-0
lines changed

crates/cheatnet/src/runtime_extensions/native/deploy.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ pub fn execute_constructor_entry_point(
3535
ConstructorEntryPointExecutionError::new(error.into(), &ctor_context, None)
3636
})?;
3737
let Some(constructor_selector) = compiled_class.constructor_selector() else {
38+
// region: Modified blockifer code
39+
cheatnet_state
40+
.trace_data
41+
.add_deploy_without_constructor_node();
42+
// endregion
3843
// Contract has no constructor.
3944
return handle_empty_constructor(
4045
compiled_class,

0 commit comments

Comments
 (0)