diff --git a/core/state_transition.go b/core/state_transition.go index 7b541b5f34..871dd1b373 100644 --- a/core/state_transition.go +++ b/core/state_transition.go @@ -297,7 +297,7 @@ func GetEffectiveGasBalance(state vm.StateDB, chainconfig *params.ChainConfig, a } func GetGasBalances(state vm.StateDB, chainconfig *params.ChainConfig, account common.Address) (*uint256.Int, *uint256.Int) { - balance := state.GetBalance(account) + balance := state.GetBalance(account).Clone() if chainconfig != nil && chainconfig.IsOptimism() && chainconfig.Optimism.UseSoulGasToken { sgtBalanceSlot := TargetSGTBalanceSlot(account) sgtBalanceValue := state.GetState(types.SoulGasTokenAddr, sgtBalanceSlot)