Skip to content

Commit 6d3edd8

Browse files
committed
Rename gas -> partial_gas_usage
1 parent 66d5db6 commit 6d3edd8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/cheatnet/src/state.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,21 +208,21 @@ impl<T> CheatStatus<T> {
208208

209209
#[derive(Clone, Debug)]
210210
pub struct GasReportData {
211-
execution_summary: ExecutionSummary,
212-
gas: OnceCell<GasVector>,
211+
pub execution_summary: ExecutionSummary,
212+
partial_gas_usage: OnceCell<GasVector>,
213213
}
214214

215215
impl GasReportData {
216216
#[must_use]
217217
pub fn new(execution_summary: ExecutionSummary) -> Self {
218218
Self {
219219
execution_summary,
220-
gas: OnceCell::new(),
220+
partial_gas_usage: OnceCell::new(),
221221
}
222222
}
223223

224224
pub fn get_gas(&self) -> &GasVector {
225-
self.gas.get_or_init(|| {
225+
self.partial_gas_usage.get_or_init(|| {
226226
self.execution_summary.clone().to_partial_gas_vector(
227227
VersionedConstants::latest_constants(),
228228
&GasVectorComputationMode::All,

0 commit comments

Comments
 (0)