# stopPrank

Description: stopPrank cheatcode documentation

Note: This document was authored using MDX

  Source: https://github.com/NomicFoundation/hardhat-website/tree/main/src/content/docs/docs/reference/cheatcodes/Environment/stop-prank.mdx

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

### Signature

```solidity
function stopPrank() external;
```

### Description

Stops an active prank started by [`startPrank`](/docs/reference/cheatcodes/environment/start-prank), resetting `msg.sender` and `tx.origin` to the values before `startPrank` was called.
