foundry-rs / foundry

Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.
https://getfoundry.sh
Apache License 2.0
8.33k stars 1.76k forks source link

fix(anvil): set auto-unlock an alias of auto-impersonate #9256

Closed jsvisa closed 2 weeks ago

jsvisa commented 2 weeks ago

Motivation

The alias of auto-impersonate is no diff of the original value:

$ anvil --help 
      --auto-impersonate
          Enable autoImpersonate on startup

          [aliases: auto-impersonate]

And as --unlocked has different meanings in cast(ref https://github.com/foundry-rs/foundry/pull/5335#discussion_r1257186166)

So let's add auto-unlock as an alias of this argument.

Solution