Replies: 2 comments
-
Just came looking for an answer to this myself. I'll be following along. If I figure it out in the meantime, I'll be sure to share. |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is not currently supported, since the cheatcodes operate on the forge VM in-process, but anvil is a different process. Most likely the way to support this will be via a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to call cheatcodes to an
anvil
instance on a forked mainnet from web3js (in an integration test) to set up initial state. I assumed you could achieve this by loading the contract at0x7109709ECfa91a80626fF3989D68f67F5b1DD12D
and calling a cheatcode function. But this does not seem to work for me (callingroll
did not change the block number in subsequent calls). Am I doing something wrong or is this a limitation of cheatcodes?Beta Was this translation helpful? Give feedback.
All reactions