Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 575 Bytes

is-persistent.md

File metadata and controls

26 lines (17 loc) · 575 Bytes

isPersistent

Signature

function isPersistent(address) external returns (bool);

Description

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

Examples

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)));

SEE ALSO