Skip to content

Commit 969e855

Browse files
noaov1matanl-starkware
authored andcommitted
blockifier: fix revert deploy
1 parent 2647378 commit 969e855

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

crates/blockifier/src/execution/execution_utils.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ use crate::execution::entry_point::{
2929
ConstructorEntryPointExecutionResult,
3030
EntryPointExecutionContext,
3131
EntryPointExecutionResult,
32+
EntryPointRevertInfo,
3233
ExecutableCallEntryPoint,
3334
};
3435
use crate::execution::errors::{
@@ -322,6 +323,12 @@ pub fn execute_deployment(
322323
));
323324
}
324325

326+
context.revert_infos.0.push(EntryPointRevertInfo::new(
327+
deployed_contract_address,
328+
current_class_hash,
329+
context.n_emitted_events,
330+
context.n_sent_messages_to_l1,
331+
));
325332
state.set_class_hash_at(deployed_contract_address, ctor_context.class_hash).map_err(
326333
|error| ConstructorEntryPointExecutionError::new(error.into(), &ctor_context, None),
327334
)?;

0 commit comments

Comments
 (0)