Skip to content

Commit

Permalink
fix(starknet_batcher): fix for feature combo build
Browse files Browse the repository at this point in the history
Signed-off-by: Dori Medini <[email protected]>
  • Loading branch information
dorimedini-starkware committed Jan 14, 2025
1 parent 0d45204 commit d1c3544
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/starknet_batcher/src/block_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,9 @@ async fn collect_execution_results_and_stream_txs(
for (input_tx, result) in tx_chunk.into_iter().zip(results.into_iter()) {
match result {
Ok(tx_execution_info) => {
*l2_gas_used += tx_execution_info.receipt.gas.l2_gas;
*l2_gas_used = l2_gas_used
.checked_add(tx_execution_info.receipt.gas.l2_gas)
.expect("Total L2 gas overflowed.");
execution_infos.insert(input_tx.tx_hash(), tx_execution_info);
if let Some(output_content_sender) = output_content_sender {
output_content_sender.send(input_tx)?;
Expand Down

0 comments on commit d1c3544

Please sign in to comment.