Skip to content

Conversation

@gustavo-grieco
Copy link
Contributor

No description provided.

Copy link
Contributor

@0xPhaze 0xPhaze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would further include the example of vm.mockCall. Imo it is a big red flag if seen in tests. It has similar issues to vm.prank, however it further completely bypasses any business-logic and can easily break assumptions.

@gustavo-grieco
Copy link
Contributor Author

I would further include the example of vm.mockCall. Imo it is a big red flag if seen in tests. It has similar issues to vm.prank, however it further completely bypasses any business-logic and can easily break assumptions.

I think this should be part of another document on good testing practice, so we can discuss cheat codes that are not implemented in hevm/echidna.

@gustavo-grieco
Copy link
Contributor Author

This one looks ready for another review or merging @montyly

@montyly montyly added this pull request to the merge queue Jul 12, 2023
Merged via the queue into master with commit b4b4759 Jul 12, 2023
@montyly montyly deleted the dev-cheat-codes branch July 12, 2023 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants