foundry
foundry copied to clipboard
feat(`cast`): add `--etherscan-api-key` flag to resolve contract names
Component
Cast
Have you ensured that all of these are up to date?
- [X] Foundry
- [X] Foundryup
What version of Foundry are you on?
No response
What command(s) is the bug in?
cast run
Operating System
No response
Describe the bug
$ cast run 0x8346762a8c1d7ce70be23c1b68ff920ffb6bca8fd62323e6c1d108f209e0b45d --rpc-url $OPTIMISM_RPC_URL
Executing previous transactions from the block.
Traces:
[429891] PurgeableSynth::modifyPositionWithTracking(79573547589616810, 0x4b57454e54410000000000000000000000000000000000000000000000000000)
├─ [9111] 0xE8c41bE1A167314ABAF2423b72Bf8da826943FFD::requireFuturesMarketActive(0x7345544800000000000000000000000000000000000000000000000000000000) [staticcall]
│ └─ ← ()
├─ [2789] 0xE8c41bE1A167314ABAF2423b72Bf8da826943FFD::requireSynthActive(0x7345544800000000000000000000000000000000000000000000000000000000) [staticcall]
│ └─ ← ()
(rest of trace omitted for brevity)
If you look up 0xE8c41bE1A167314ABAF2423b72Bf8da826943FFD you'll notice that contract has a name of SystemStatus
, but this does not show up in the trace