Skip to content

bug(cast call): --override-* flags not respected with --trace #10720

@Yen

Description

@Yen
Contributor

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

Activity

changed the title [-]`cast call` `--override-*` flags not respected with `--trace`[/-] [+]bug(`cast call`): `--override-*` flags not respected with `--trace`[/+] on Jun 13, 2025
added
C-castCommand: cast
and removed
T-needs-triageType: this issue needs to be labelled
on Jun 13, 2025
moved this from Backlog to Done in Foundryon Jun 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-castCommand: castT-bugType: bug

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @Yen@zerosnacks

      Issue actions

        bug(`cast call`): `--override-*` flags not respected with `--trace` · Issue #10720 · foundry-rs/foundry