Skip to content

Support EIP-7201 in forge inspect storage #7662

@radeksvarz

Description

@radeksvarz

Component

Forge

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.2.0 (89f0fb9 2024-04-14T00:20:50.727844499Z)

What command(s) is the bug in?

forge inspect

Operating System

Linux

Describe the bug

https://eips.ethereum.org/EIPS/eip-7201 introduces a new (namespace) approach for storage layout esp. for upgradeable contracts. This is already used in OZ v5.

forge inspect storage however does not list such namespaced storage.

To replicate

forge inspect storage of ERC20 based on https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/blob/master/contracts/token/ERC20/ERC20Upgradeable.sol

ideal fix

forge inspect storage --pretty appends the ERC7201 based storage to the list.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Blocked

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions