We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 922a47a commit 5e30910Copy full SHA for 5e30910
eth/tracers/native/prestate.go
@@ -79,7 +79,7 @@ func (t *prestateTracer) CaptureStart(env *vm.EVM, from common.Address, to commo
79
80
// The sender balance is after reducing: value and gasLimit.
81
// We need to re-add them to get the pre-tx balance.
82
- fromBal := t.prestate[from].Balance
+ fromBal := new(big.Int).Set(t.prestate[from].Balance)
83
gasPrice := env.TxContext.GasPrice
84
consumedGas := new(big.Int).Mul(gasPrice, new(big.Int).SetUint64(t.gasLimit))
85
fromBal.Add(fromBal, new(big.Int).Add(value, consumedGas))
0 commit comments