foundry-rs / forge-std

Forge Standard Library is a collection of helpful contracts for use with forge and foundry. It leverages forge's cheatcodes to make writing tests easier and faster, while improving the UX of cheatcodes. For more in-depth usage examples checkout the tests.
Apache License 2.0
850 stars 335 forks source link

Provide better naming for VM functionality. #330

Closed robinsdan closed 1 year ago

robinsdan commented 1 year ago

It is extremely difficult for me to use these functions (prank, roll, warp ...) without consulting the documentation.
This repo https://github.com/nomoixyz/vulcan tries to fix this.

mds1 commented 1 year ago

You can remember prank because you are literally making a "prank CALL" and impersonating a caller. I agree roll and warp are not very intuitive, and they were named as such for backwards compatibility with dapptools.

We can consider adding aliases, but this would be a change needed upstream in foundry, so feel free to re-open this issue there. (And of course it's easy to add your own helper functions that alias these cheats in the meantime)