1

In mainnet forking, I am trying to move some fund, say from one LP token contract to address I control so that I can test functionality. Is there any cheatcode that enables me to do this?

1 Answer 1

1

For hardhat, there is an RPC method Impersonating accounts that allows you to do this. and it seems like Foundry implemented something similar as anvil_impersonateAccount.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.