function prank(address) external;
function prank(address sender, address origin) external;
Sets msg.sender
to the specified address for the next call. "The next call" includes static calls as well, but not calls to the cheat code address.
If the alternative signature of prank
is used, then tx.origin
is set as well for the next call.
/// function withdraw() public {
/// require(msg.sender == owner);
vm.prank(owner);
myContract.withdraw(); // [PASS]
Forge Standard Library