# resetGasMetering

Description: resetGasMetering 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/reset-gas-metering.mdx

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

### Signature

```solidity
function resetGasMetering() external;
```

### Description

Resets gas metering to the gas limit of current execution frame (i.e. `gasleft()` will be restored to initial value).
