Skip to content

Commit

Permalink
add a comment on why adding 1 to the exec events
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancoGiachetta committed Sep 20, 2024
1 parent ee69acc commit cceac05
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions replay/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,8 @@ fn show_execution_data(
rpc_receipt.messages_sent.len(),
);

// currently adding 1 because the sequencer is counting only the
// events produced by the inner calls of a callinfo
let events_match = exec_rsc.n_events + 1 == rpc_receipt.events.len();
let msgs_match = rpc_receipt.messages_sent.len()
== exec_rsc.message_cost_info.l2_to_l1_payload_lengths.len();
Expand Down

0 comments on commit cceac05

Please sign in to comment.