Sitelet https://hardhat.org/docs/reference/cheatcodes/forking/is-persistent
Skip to content

isPersistent

function isPersistent(address) external returns (bool);

Returns whether an account is marked as persistent (makePersistent).

Check default status of msg.sender and the current test account

// By default the `sender` and the test contract itself are persistent
assert(cheats.isPersistent(msg.sender));
assert(cheats.isPersistent(address(this)));