Skip to content

Commit

Permalink
cmd/evm: don't overwrite sender account (ethereum#30259)
Browse files Browse the repository at this point in the history
Fixes ethereum#30254 

It seems like the removed CreateAccount call is very old and not needed anymore.
After removing it, setting a sender that does not exist in the state doesn't seem to cause
an issue.
  • Loading branch information
lightclient authored Aug 2, 2024
1 parent 16cf5c5 commit 142c94d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion cmd/evm/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ func runCmd(ctx *cli.Context) error {
if ctx.String(SenderFlag.Name) != "" {
sender = common.HexToAddress(ctx.String(SenderFlag.Name))
}
statedb.CreateAccount(sender)

if ctx.String(ReceiverFlag.Name) != "" {
receiver = common.HexToAddress(ctx.String(ReceiverFlag.Name))
Expand Down

0 comments on commit 142c94d

Please sign in to comment.