Skip to content

bug(cast): not all selectors are decoded when running --decode-internal, presumably early returns upon being throttled by Etherscan #9880

Open
@zerosnacks

Description

@zerosnacks

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.0.0-nightly
Commit SHA: 1bcd17c
Build Timestamp: 2025-02-12T00:21:20.710803208Z (1739319680)
Build Profile: maxperf

What version of Foundryup are you on?

foundryup: 1.0.1

What command(s) is the bug in?

No response

Operating System

None

Describe the bug

When running cast run 0x43dbea777eebc21aee1449b0a8a71b554b36ffa1bda7ee9c64a239687454b72c --rpc-url <RPC_URL> --decode-internal -vvvvv --etherscan-api-key <ETHERSCAN_API_KEY> it decodes the selectors partially and returns early.

When re-running the same command it will continue fetching the source maps and load the others from cache.

It takes several runs to get a clean output.

I'm presuming this is related to a race condition or we return early upon getting throttled by Etherscan.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-castCommand: castT-bugType: bug

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions