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 support for EIP-234 #411

Merged
merged 2 commits into from Nov 21, 2020
Merged

Add support for EIP-234 #411

merged 2 commits into from Nov 21, 2020

Conversation

GCdePaula
Copy link
Contributor

EIP-234: Add blockHash to JSON-RPC filter options.

Small changes to Filter and FilterBuilder, to add support for EIP-234. Here's the related API docs:
https://eth.wiki/json-rpc/API#eth_getlogs

Cheers!

Copy link
Owner

@tomusdrw tomusdrw left a comment

Choose a reason for hiding this comment

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

Looks good! I'd like to have the docs updated to reflect the implementation.

src/types/log.rs Outdated
self.filter.to_block = Some(block);
self
}

/// Sets block hash
Copy link
Owner

Choose a reason for hiding this comment

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

Could you update documentation and mention that it's mutually exclusive with from_block and to_block?

Same with from_block and to_block docs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure!

Copy link
Owner

Choose a reason for hiding this comment

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

Thanks!

@tomusdrw tomusdrw merged commit bba005d into tomusdrw:master Nov 21, 2020
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.

None yet

2 participants