> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://www.getfoundry.sh/api/mcp` to find what you need.
>
> **Have feedback?** Use `submit_feedback` on the same MCP server.

## `enable_packed_slots`

### Signature

```solidity
function enable_packed_slots(StdStorage storage self) internal returns (StdStorage storage);
```

### Description

Enables the usage of packed storage slots

### Examples

```solidity
// Write arbitrary balances even on gas-optimized contracts like AUSD
stdstore
    .enable_packed_slots()
    .target(_tokenAddress)
    .sig("balanceOf(address)")
    .with_key(_to)
    .checked_write(
        _amount
    );
```
