Skip to content

hardfork --latest option doesn't leat to Prague being selected as hardfork #10652

Closed
@CPerezz

Description

@CPerezz

Component

Anvil

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

  • Foundry
  • Foundryup

What version of Foundry are you on?

1.2.1-stable

What version of Foundryup are you on?

1.0.1

What command(s) is the bug in?

anvil --hardfork prague --block-time 10

Operating System

macOS (Apple Silicon)

Describe the bug

When I run anvil --hardfork prague --block-time 10 I'd expect to get Prague so I can test 7702 tx types for example.

Instead, I get Cancun, which makes sense as per:

EthereumHardfork::Cancun.into()

And also because latest is the default option as seen in:
/// Choose the hardfork by name, e.g. `cancun`, `shanghai`, `paris`, `london`, etc...
/// [default: latest]

This should be updated to deliver the latest hardfork when using --latest.

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-bugType: bugT-needs-triageType: this issue needs to be labelled

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions