Skip to content

cast call --override-* flags not respected with --trace #10720

Open
@Yen

Description

@Yen

Component

Cast

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

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge Version: 1.2.2-stable Commit SHA: 73ac79f Build Timestamp: 2025-06-01T14:56:44.649397717Z (1748789804) Build Profile: maxperf

What version of Foundryup are you on?

foundryup: 1.0.1

What command(s) is the bug in?

cast call

Operating System

Linux

Describe the bug

cast call --override flags added in #10255 do not apply when used with --trace.

Works (no --trace):

cast call -r https://mainnet.base.org --override-balance 0xFFFFFFFFFFAAAAAAAAAAFFFFFFFFFFAAAAAAAAAA:500 --from 0xFFFFFFFFFFAAAAAAAAAAFFFFFFFFFFAAAAAAAAAA --value 500 0x4200000000000000000000000000000000000006 "deposit()"

EVM error (with --trace):

cast call -r https://mainnet.base.org --override-balance 0xFFFFFFFFFFAAAAAAAAAAFFFFFFFFFFAAAAAAAAAA:500 --from 0xFFFFFFFFFFAAAAAAAAAAFFFFFFFFFFAAAAAAAAAA --value 500 0x4200000000000000000000000000000000000006 "deposit()" --trace

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions