Skip to content

Commit 2ea6957

Browse files
committed
gas dimension tracing bugfix: sign error on subtraction of gas refund
1 parent 76b20db commit 2ea6957

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eth/tracers/native/gas_dimension_calc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ func calcSStoreGas(
808808
if accumulatedRefund < currentRefund {
809809
diff = int64(currentRefund - accumulatedRefund)
810810
} else {
811-
diff = int64(accumulatedRefund - currentRefund)
811+
diff = -1 * int64(accumulatedRefund-currentRefund)
812812
}
813813
t.SetRefundAccumulated(currentRefund)
814814
}

0 commit comments

Comments
 (0)