simulateUserOp
function to simulate only specific UserOperations.
Update your configuration
To use simulation, you will need to update yourfoundry.toml
file as follows:
Write your tests
When you write your tests, you can use themakeAccountInstance
function to create an account instance. Then, you can use this instance
to execute transactions, for example: