Skip to content

bug(forge test): vm.blobhashes does not set blobhashes #11353

@sam-iamm

Description

@sam-iamm

Component

Forge

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

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge Version: 1.3.1-stable Commit SHA: 08d3a4a

What version of Foundryup are you on?

foundryup: 1.3.0

What command(s) is the bug in?

forge test

Operating System

None

Describe the bug

vm.blobhashes does not set the blobhashes correctly in recent versions.

Our tests broke due to upgrading from forge Version: 1.2.3-dev to forge Version: 1.3.1-stable.

How to recreate:

  1. Create a contract that fetches a blobhash by index w/ assertion it's not zero
  2. Run a test that sets the blobhash using vm.blobhashes

I have recreated it here: https://github.com/sam-iamm/blobhash/tree/main

The recreated example passes with forge 1.2.3-dev and fails with 1.3.1-stable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions