bug: cast run
does not decode events on local node with chain id 1337
#9255
Labels
cast run
does not decode events on local node with chain id 1337
#9255
Component
Cast
Describe the feature you would like
doing
cast run <tx>
doesn't always fully decode calls and events. When executed against local node, it does parse methodIds, but not events.However, when decoding transaction on external chains (event testnet, like sepolia), it parses both methods and events.
Apparently, it depends on the "chainId" of the local node, and when chainId is "1337", it fails to decode some information.
with Anvil, I can add --chain-id, but some of my tests require geth, which can't easily change the chainid.
suggestion
Either should be able to "push" symbol information to chain-id specific, or add a fallback, that if methodid/topicid are missing for a specific chain, then use them from another (after all, they can't differ much, the methodid/topicid depend on the method name and parameter types. the only thing that can differ between networks is the parameter names)
Additional context
No response
The text was updated successfully, but these errors were encountered: