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

Problem: different result from eth_getProof comparing with Ethereum #749

Closed
macong-cdc opened this issue Oct 27, 2022 · 2 comments · Fixed by evmos/ethermint#1431
Closed

Comments

@macong-cdc
Copy link
Collaborator

macong-cdc commented Oct 27, 2022

Describe the bug
Result from eth_getProof RPC method is different from Ethereum EIP-1186

To Reproduce
Steps to reproduce the behavior:
You may try

curl --location --request POST 'https://evm-t3.cronos.org' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc": "2.0",
    "method": "eth_getProof",
    "params": [
        "0x4CecAA8ad42Ba5c0D69C6F68a273901C6fd52B02",
        ["0x1"],
        "0x588200"
    ],
    "id": 0
}'

Expected behavior
accountProof and proof under storageProof in the json returned are not hex-strings.

@adu-crypto
Copy link
Contributor

https://github.com/ethereum/go-ethereum/blob/5b1a04b9c749d804b51159fe12246c56de8515c1/internal/ethapi/api.go#L702

it seems geth simply encoding bytes as hex string with 0x prefix

@yihuang
Copy link
Collaborator

yihuang commented Nov 9, 2022

fixed by #764

@yihuang yihuang closed this as completed Nov 9, 2022
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

Successfully merging a pull request may close this issue.

3 participants