Skip to content

Impersonate accounts on forge script --broadcast to Anvil #2051

@ThomasdenH

Description

@ThomasdenH

Component

Forge

Describe the feature you would like

Anvil currently has the functionality to impersonate accounts (anvil_impersonatingAccount). However, (I think) it's currently impossible to impersonate accounts from forge script. For example, for deploying a contract you may need approval from some existing admin contract. Currently vm.broadcast(adminContractAddress) fails because the contract is not unlocked.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions