0xcheats ((hot)) -
// src/Timelock.sol contract Timelock { uint256 public unlockTime; address public owner; mapping(address => uint) public balances; constructor(uint _duration) { owner = msg.sender; unlockTime = block.timestamp + _duration; }
The most famous cheatcode. In standard EVM, msg.sender is immutable during a transaction. With 0xcheats, you can become anyone. 0xcheats
import "forge-std/Test.sol"; import "../src/Timelock.sol"; // src/Timelock