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

Add Pending tag support #535

Merged
merged 4 commits into from
Dec 16, 2021

Conversation

tgmichel
Copy link
Contributor

@tgmichel tgmichel commented Dec 14, 2021

This PR adds support for pending tag in:

  • eth_getBalance
  • eth_getCode
  • eth_getStorageAt

In addition to adding pending tag support to it, eth_call uses the BlockNumber parameter (previously not used).

Note: if the pending contract is a future txn and some of the txns in the ready queue satisfies the requirements of the future one, this PR's approach won't do it because we only apply ready txns. @sorpaas I think current proposal is enough, but please let me know.

@tgmichel tgmichel changed the title Add Pending tag support for eth_getCode Add Pending tag support Dec 16, 2021
@sorpaas sorpaas merged commit 9937586 into polkadot-evm:master Dec 16, 2021
tgmichel added a commit to moonbeam-foundation/frontier that referenced this pull request Dec 17, 2021
* Add Pending tag support for eth_getCode

* Add test

* Add Pending tag support for additional methods

* Update tests

(cherry picked from commit 9937586)

# Conflicts:
#	client/rpc/Cargo.toml
@tgmichel tgmichel deleted the tgm-codeat-pending branch April 1, 2022 09:55
abhijeetbhagat pushed a commit to web3labs/frontier that referenced this pull request Jan 11, 2023
* Add Pending tag support for eth_getCode

* Add test

* Add Pending tag support for additional methods

* Update tests
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 this pull request may close these issues.

2 participants