You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// 1) calculates the available_gas delta from the previous snapshot,
58
-
/// 2) converts this to the corresponding amount of exec_units
59
-
/// 3) updates the available_gas and exec_units_consumed snapshots. The exec_units_consumed_snapshot is optimistically updated, assuming the value calculated in 2 will be consumed
60
-
/// 4) returns the value calculated in 2) for its caller to actually consume that exec_units_consumed
57
+
/// 1) calculates the gas_used delta from the previous snapshot,
58
+
/// 2) converts this to the corresponding amount of exec_units.
59
+
/// 3) returns the value calculated in 2) for its caller to actually consume that exec_units_consumed
60
+
/// The caller should also update the snapshots after doing so.
0 commit comments