skip to content

Cheatcodes

0 questions

The vm cheatcodes that let a test bend the EVM: prank to change msg.sender, deal to mint balances, warp and roll for time and blocks, plus expectRevert, expectEmit and mockCall. Interviewers ask because choosing the cheatcode that models a scenario - and knowing cheatcodes never exist on-chain - shows you can test access control and time-locked logic honestly.

questions

0 questions