-
Notifications
You must be signed in to change notification settings - Fork 111
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
EVM: Implement getBlockByNumber query #884
EVM: Implement getBlockByNumber query #884
Conversation
Codecov Report
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs a test
Tests are added, I think good to go after final review. |
.expect("Transaction must be set"); | ||
(id, tx) | ||
}) | ||
.collect::<Vec<_>>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You shouldn't need to collect it here, this causes unnecessary allocation on heap.
Description
Implements get_block_by_number method in sov-evm query. Implemented "earliest", "latest", and hex parameters. Implemented both details(full / hash) on transaction return type.
Block_number defaults to latest block if not present.
Looking forward for efficiency feedbacks!
Linked Issues
eth_getBlockByNumber
endpoint. #878Testing
Describe how these changes were tested. If you've added new features, have you added unit tests?
Tests WIP
Docs
Describe where this code is documented. If it changes a documented interface, have the docs been updated?
No docs added yet.