cmd/evm: don't overwrite sender account (#30259)

Fixes #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.
pull/30257/head
lightclient 3 months ago committed by GitHub
parent 16cf5c5fed
commit 142c94d628
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      cmd/evm/runner.go

@ -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))

Loading…
Cancel
Save