Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
pgherveou committed Feb 3, 2025
1 parent 5d35b1e commit 8c75ece
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions substrate/frame/revive/src/exec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -898,8 +898,9 @@ where
gas_meter.nested(gas_limit),
)

// For the first frame, charge the gas on its own nested gas meter.
// For subsequent frames, charge the parent frame's gas meter.
// For the first frame, charge the gas to the frame's nested gas meter
// instead of the top-level gas meter, so it's properly associated with
// the initial frame when tracing the call.
} else if origin_is_caller {
let mut nested_gas_meter = gas_meter.nested(gas_limit);
(
Expand Down

0 comments on commit 8c75ece

Please sign in to comment.