Skip to content

Add support for etch cheatcode (from Foundry) #1097

Open
@rappie

Description

@rappie

https://book.getfoundry.sh/cheatcodes/etch
"Sets the bytecode of an address who to code."

This could be useful in multiple ways.

The main reason I'd like this is to be able to turn an EOA into a Contract to test how the target contract deals with this.

Another use is to debug/alter deployed contract onchain like this:
https://twitter.com/apoorvlathey/status/1621986610068996096

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions