Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

feat: add support for EIP-234 and EIP-1898 #231

Merged
merged 5 commits into from
Mar 16, 2021

Conversation

GCdePaula
Copy link
Contributor

Related issue: #230

Motivation

These two EIPs are closely related, and allow for querying the blockchain's state at a specified block hash. Which is quite useful when dealing chain reorgs and allows for more robust clients.

Solution

For EIP-234, add method at_block_hash for Event and Filter.

For EIP-1898, modify Middleware functions affected by the EIP (that is, most that receive a BlockNumber), changing their signatures to receive a BlockId instead. Also, change the method ContractCall::block to receive a BlockId, instead of a BlockNumber.

Copy link
Owner

@gakonst gakonst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you.

@gakonst gakonst merged commit 530bfe2 into gakonst:master Mar 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants