core: initialize gasRemaining
with =
instead of +=
(#29149)
initialize gasRemaining with = instead of +=
This commit is contained in:
parent
9b3ceb2137
commit
d89d7ebdec
@ -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…
Reference in New Issue
Block a user