Skip to content

Commit 329f31d

Browse files
committed
gas dimension tracing: use descriptive names for tracer output
1 parent 9be9106 commit 329f31d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

eth/tracers/native/gas_dimension_calc.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ import (
1313
// GasesByDimension is a type that represents the gas consumption for each dimension
1414
// for a given opcode.
1515
type GasesByDimension struct {
16-
OneDimensionalGasCost uint64 `json:"g1"`
16+
OneDimensionalGasCost uint64 `json:"gas1d"`
1717
Computation uint64 `json:"cpu"`
1818
StateAccess uint64 `json:"rw,omitempty"`
19-
StateGrowth uint64 `json:"gr,omitempty"`
20-
HistoryGrowth uint64 `json:"h,omitempty"`
21-
StateGrowthRefund int64 `json:"rf,omitempty"`
22-
ChildExecutionCost uint64 `json:"exc,omitempty"`
19+
StateGrowth uint64 `json:"growth,omitempty"`
20+
HistoryGrowth uint64 `json:"hist,omitempty"`
21+
StateGrowthRefund int64 `json:"refund,omitempty"`
22+
ChildExecutionCost uint64 `json:"childcost,omitempty"`
2323
}
2424

2525
// in the case of opcodes like CALL, STATICCALL, DELEGATECALL, etc,

0 commit comments

Comments
 (0)