Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eth_getProof results in "method handler crashed #379

Open
akegaviar opened this issue Dec 17, 2024 · 1 comment
Open

eth_getProof results in "method handler crashed #379

akegaviar opened this issue Dec 17, 2024 · 1 comment

Comments

@akegaviar
Copy link

akegaviar commented Dec 17, 2024

Describe the bug
On the Fantom chain, eth_getProof or ftm_getProof crashes with "method handler crashed".

You can check the call here as well: eth_getProof Fantom API reference.

To Reproduce

% curl --request POST \
     --url SONIC_NODE_RPC \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "method": "eth_getProof",
  "params": [
    "0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82",
    [
      "0xf6e506a9cbe7546a796b187c40609a170ea8073e047129a3cae1c38e6d7559b7"
    ],
    "latest"
  ],
  "id": 1,
  "jsonrpc": "2.0"
}
'
{"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"method handler crashed"}}

The Sonic client version is Sonic/v1.2.1-g-299d174b-1728044688/linux-amd64/go1.22.8

Additional context
I think this call is expected to work per this pull.

The call does work on the Fantom Opera client.

@jenikd
Copy link
Collaborator

jenikd commented Dec 17, 2024

Thanks for reporting this. This call should be not implemented for Fantom chain. I understand, that this RPC endpoint is now visible in this Sonic client version wich is working with Fantom chain. Need to be fixed not to crash the handler and return not existing function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants