Skip to content

Add Pending tag support#535

Merged
sorpaas merged 4 commits intopolkadot-evm:masterfrom
moonbeam-foundation:tgm-codeat-pending
Dec 16, 2021
Merged

Add Pending tag support#535
sorpaas merged 4 commits intopolkadot-evm:masterfrom
moonbeam-foundation:tgm-codeat-pending

Conversation

@tgmichel
Copy link
Copy Markdown
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 requested a review from sorpaas as a code owner December 14, 2021 09:39
@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