ethereum / hevm

symbolic EVM evaluator
https://hevm.dev
GNU Affero General Public License v3.0
225 stars 46 forks source link

Add basic forking cheatcodes (continuation of #259) #433

Closed samalws-tob closed 7 months ago

samalws-tob commented 8 months ago

Continuation of #259 (@arcz suggested I open a new PR rather than iterate on his)

Description

Basic implementation of forking: https://book.getfoundry.sh/forge/fork-testing

Checklist

arcz commented 7 months ago

@samalws-tob could you rebase? there were a few changes since then

samalws-tob commented 7 months ago

@arcz done

msooseth commented 7 months ago

Looks really nice actually, thank you so much! Do you think it'd make sense to also implement activeFork if we are at it? I am thinking it'd be like 5 lines of code, perhaps best to add it to this PR, rather than having to get back into the same mindspace a few months later and do it then, with more effort? What do you think?

samalws-tob commented 7 months ago

Just added activeFork

msooseth commented 7 months ago

Thanks, merged! Sorry for being late :(