Skip to content

Commit

Permalink
Merge pull request #17 from ethstorage/uint256fix
Browse files Browse the repository at this point in the history
fix *uint256 reuse issue
  • Loading branch information
qizhou authored Oct 30, 2024
2 parents 5141753 + e40be92 commit e6895e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/state_transition.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e6895e7

Please sign in to comment.