core: initialize `gasRemaining` with `=` instead of `+=` (#29149)

initialize gasRemaining with = instead of +=
pull/28945/head
zhiqiangxu 7 months ago committed by GitHub
parent 9b3ceb2137
commit d89d7ebdec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      core/state_transition.go

@ -263,7 +263,7 @@ func (st *StateTransition) buyGas() error {
if err := st.gp.SubGas(st.msg.GasLimit); err != nil {
return err
}
st.gasRemaining += st.msg.GasLimit
st.gasRemaining = st.msg.GasLimit
st.initialGas = st.msg.GasLimit
mgvalU256, _ := uint256.FromBig(mgval)

Loading…
Cancel
Save