# isPersistent

Description: isPersistent cheatcode documentation

Note: This document was authored using MDX

  Source: https://github.com/NomicFoundation/hardhat-website/tree/main/src/content/docs/docs/reference/cheatcodes/Forking/is-persistent.mdx

{/* This document contains content copied/adapted from the Foundry Book (MIT licensed). See LICENSE in the parent directory. */}

### Signature

```solidity
function isPersistent(address) external returns (bool);
```

### Description

Returns whether an account is marked as persistent ([`makePersistent`](/docs/reference/cheatcodes/forking/make-persistent)).

### Examples

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

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

### SEE ALSO

- [makePersistent](/docs/reference/cheatcodes/forking/make-persistent)
- [revokePersistent](/docs/reference/cheatcodes/forking/revoke-persistent)
