# load

Description: load 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/load.mdx

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

### Signature

```solidity
function load(address account, bytes32 slot) external returns (bytes32);
```

### Description

Loads the value from storage slot `slot` on account `account`.

### Examples

```solidity
/// contract LeetContract {
///     uint256 private leet = 1337; // slot 0
/// }

bytes32 leet = vm.load(address(leetContract), bytes32(uint256(0)));
emit log_uint(uint256(leet)); // 1337
```

### SEE ALSO

Forge Standard Library

[Std Storage](https://getfoundry.sh/reference/forge-std/std-storage)
