You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cast call generates a JSON-RPC request with params array of 3 elements (the 3rd is an empty state-override set). Nethermind expects only 2 elements and rejects the request.
The request params includes a 3rd parameter {} that some Ethereum clients accept as a "state override set".
One possibility is to omit the 3rd parameter when the state override set is empty, to retain compatibility with the reference Ethereum JSON-RPC Spec in the common case of no overrides.
Component
Cast
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (467aff3 2024-05-17T00:18:15.145320552Z)
What command(s) is the bug in?
cast call
Operating System
Linux
Describe the bug
cast call
generates a JSON-RPC request withparams
array of 3 elements (the 3rd is an empty state-override set). Nethermind expects only 2 elements and rejects the request.For example:
Some Ethereum node implementations (such as Alchemy) handle this request correctly.
Nethermind logs an error:
The request
params
includes a 3rd parameter{}
that some Ethereum clients accept as a "state override set".One possibility is to omit the 3rd parameter when the state override set is empty, to retain compatibility with the reference Ethereum JSON-RPC Spec in the common case of no overrides.
Observed with:
The text was updated successfully, but these errors were encountered: