mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
update mgval by side effect
This commit is contained in:
parent
93c541ad56
commit
d203a3f1e6
1 changed files with 1 additions and 1 deletions
|
|
@ -234,7 +234,7 @@ func (st *StateTransition) to() common.Address {
|
|||
|
||||
func (st *StateTransition) buyGas() error {
|
||||
mgval := new(big.Int).SetUint64(st.msg.GasLimit)
|
||||
mgval = mgval.Mul(mgval, st.msg.GasPrice)
|
||||
mgval.Mul(mgval, st.msg.GasPrice)
|
||||
balanceCheck := new(big.Int).Set(mgval)
|
||||
if st.msg.GasFeeCap != nil {
|
||||
balanceCheck.SetUint64(st.msg.GasLimit)
|
||||
|
|
|
|||
Loading…
Reference in a new issue