echidna
echidna copied to clipboard
Add support for `etch` cheatcode (from Foundry)
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
is this really need with the deployBytecode option? :thinking:
Does deployBytecode support overwriting code on onchain addresses?
I don't know, this should be tested.