Open
Description
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