Skip to content
Logo

Cheatcodes Reference

Cheatcodes give you powerful assertions, the ability to alter the state of the EVM, mock data, and more.

Cheatcodes are made available through use of the cheatcode address (0x7109709ECfa91a80626fF3989D68f67F5b1DD12D).

You can also access cheatcodes easily via vm available in Forge Standard Library's Test contract.

Cheatcode Categories

Forge Standard Library

Forge Std implements wrappers around cheatcodes, which combine multiple standard cheatcodes to improve development experience. See Std Cheats for more details.

Contributing

If you need a new cheatcode, consider contributing to the Foundry codebase.

Cheatcodes Interface

The complete Solidity interface for all cheatcodes is available in the forge-std repository.