foundry: error code -32602: duplicate field `data` at line 1 column 194
Component
Cast
Have you ensured that all of these are up to date?
- Foundry
- Foundryup
What version of Foundry are you on?
forge 0.2.0 (36cbce7 2024-11-15T00:21:52.319667269Z)
What command(s) is the bug in?
cast call
Operating System
Linux
Describe the bug
cast call {contract_address} {function_sig} {args} --rpc-url ...
Call a view contract function =, but got this error retuns:
Error: server returned an error response: error code -32602: duplicate field data at line 1 column 194
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 17 (3 by maintainers)
Getting the same issue for any of my local hardhat nodes (mainnet forks). Adding
--trace“fixes” it– Can confirm that using anvil with same fork and height works, so seems like something specific interacting with hardhat
that’s right, for cast you can pass it as
--evm-version parisIt’s not ‘non-EVM’, it is EVM-compatible
Yes, Foundry does not support non-EVM chains
Marking as
won't fix