Skip to content

anvil base fee increases to 1 after starting with 0 and sending many transactions #5161

@alvrs

Description

@alvrs

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 (ce687fc 2023-06-15T00:05:25.914566000Z)

What command(s) is the bug in?

anvil -b 1 --block-base-fee-per-gas 0

Operating System

macOS (Apple Silicon)

Describe the bug

  1. Start a new anvil node with anvil -b 1 --block-base-fee-per-gas 0.
  2. Run cast block to confirm baseFeePerGas is 0
  3. Execute a bunch of transactions (in my case deploying a MUD app, but shouldn't be specific to the type of transactions)
  4. Run cast block again, baseFeePerGas is now 1

This is problematic for local environments where transactions are executed from accounts with no balance.

Note: this wasn't the case yet with this version:
CleanShot 2023-06-15 at 16 56 57@2x

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