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_call for non-latest block returns wrong info #32

Open
jamison-phillips opened this issue May 11, 2022 · 1 comment
Open

eth_call for non-latest block returns wrong info #32

jamison-phillips opened this issue May 11, 2022 · 1 comment

Comments

@jamison-phillips
Copy link

The eth_call rpc call has a parameter (the "default block parameter", which is supposed to apply to eth_call, and four other functions, as detailed at https://eth.wiki/json-rpc/API) to specify for which block the data should be supplied, but the data returned is always for the latest block, unlike other chains' EVMs. For some number of recent blocks, the eth_getBalance function works properly when specifying the block number.

Having this function supported is needed to properly synchronize the state as of a specific recent point in time.

@jieyilong
Copy link
Member

jieyilong commented May 12, 2022

Thanks for reporting the issue! eth_call for a non-lastest block is not supported yet in the current version. We'll look into this feature for future releases.

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

3 participants
@jieyilong @jamison-phillips and others