Skip to content

Commit 9e129ef

Browse files
authored
core: remove useless assignments (#29065)
1 parent a970295 commit 9e129ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/state_transition.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ func (st *StateTransition) to() common.Address {
234234

235235
func (st *StateTransition) buyGas() error {
236236
mgval := new(big.Int).SetUint64(st.msg.GasLimit)
237-
mgval = mgval.Mul(mgval, st.msg.GasPrice)
237+
mgval.Mul(mgval, st.msg.GasPrice)
238238
balanceCheck := new(big.Int).Set(mgval)
239239
if st.msg.GasFeeCap != nil {
240240
balanceCheck.SetUint64(st.msg.GasLimit)
@@ -477,7 +477,7 @@ func (st *StateTransition) refundGas(refundQuotient uint64) uint64 {
477477

478478
// Return ETH for remaining gas, exchanged at the original rate.
479479
remaining := uint256.NewInt(st.gasRemaining)
480-
remaining = remaining.Mul(remaining, uint256.MustFromBig(st.msg.GasPrice))
480+
remaining.Mul(remaining, uint256.MustFromBig(st.msg.GasPrice))
481481
st.state.AddBalance(st.msg.From, remaining)
482482

483483
// Also return remaining gas to the block gas counter so it is

0 commit comments

Comments
 (0)