mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
core: initialize gasRemaining with = instead of += (#29149)
initialize gasRemaining with = instead of +=
This commit is contained in:
parent
9b3ceb2137
commit
d89d7ebdec
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue