mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-14 20:16:36 +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 {
|
if err := st.gp.SubGas(st.msg.GasLimit); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
st.gasRemaining += st.msg.GasLimit
|
st.gasRemaining = st.msg.GasLimit
|
||||||
|
|
||||||
st.initialGas = st.msg.GasLimit
|
st.initialGas = st.msg.GasLimit
|
||||||
mgvalU256, _ := uint256.FromBig(mgval)
|
mgvalU256, _ := uint256.FromBig(mgval)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue