Skip to content

Commit 76b20db

Browse files
committed
gas dimension tracing: simplify gas dimensions for SSTORE
1 parent aa80bb1 commit 76b20db

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

eth/tracers/native/gas_dimension_calc.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -819,17 +819,17 @@ func calcSStoreGas(
819819
accessCost := cost - params.SstoreSetGas
820820
ret = GasesByDimension{
821821
OneDimensionalGasCost: cost,
822-
Computation: params.WarmStorageReadCostEIP2929,
822+
Computation: 0,
823823
StateAccess: accessCost,
824-
StateGrowth: params.SstoreSetGas - params.WarmStorageReadCostEIP2929,
824+
StateGrowth: params.SstoreSetGas,
825825
HistoryGrowth: 0,
826826
StateGrowthRefund: diff,
827827
}
828828
} else if cost > 0 {
829829
ret = GasesByDimension{
830830
OneDimensionalGasCost: cost,
831-
Computation: params.WarmStorageReadCostEIP2929,
832-
StateAccess: cost - params.WarmStorageReadCostEIP2929,
831+
Computation: 0,
832+
StateAccess: cost,
833833
StateGrowth: 0,
834834
HistoryGrowth: 0,
835835
StateGrowthRefund: diff,

0 commit comments

Comments
 (0)