Skip to content

Commit

Permalink
Fix gas update
Browse files Browse the repository at this point in the history
  • Loading branch information
Nashtare committed Jan 26, 2024
1 parent 5b5ddcf commit 572bbd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocol_decoder/src/decoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ impl ProcessedBlockTrace {
// For each non-dummy txn, we increment `txn_number_after` by 1, and
// update `gas_used_after` accordingly.
extra_data.txn_number_after += U256::one();
extra_data.gas_used_after = txn_info.meta.gas_used.into();
extra_data.gas_used_after += txn_info.meta.gas_used.into();

Self::apply_deltas_to_trie_state(
&mut curr_block_tries,
Expand Down

0 comments on commit 572bbd8

Please sign in to comment.