Skip to content

eth_getProof on anvil node returns wrong RLP encoding #5004

@Artifex1

Description

@Artifex1

Component

Anvil

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

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.2.0 (31fcf5a 2023-05-19T00:04:19.980323193Z)

What command(s) is the bug in?

anvil

Operating System

Linux

Describe the bug

Steps to reproduce:

  1. Running a local node with anvil
  2. Deploying a contract with arbitrary storage writes
  3. Getting the proof for one of the storage slots as cast proof <contract> <slot>

The returning account and storage proof array elements have a wrong RLP encoding which cannot be decoded.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Completed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions