-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 getLogs by blockHash #1269
Add getLogs by blockHash #1269
Conversation
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.
This style/approach looks to be in line with the rest of the codebase, @charles-cooper. Thanks for taking it on!
Great! The next step I wanted to take was to change the defaults for
|
Defaults for fromBlock and toBlock are now None, and additional validation is provided for blockHash.
That makes sense to me. @pipermerriam do you see issues with that approach? |
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.
👍 apart from the test and lint failures.
I didn't forget about this @charles-cooper. I should be able to get to it early next week! Thanks! |
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.
Looks good to me @charles-cooper! Thanks!
What was wrong?
getLogs did not accept the blockHash parameter.
Related to Issue #1236
How was it fixed?
Added blockHash as a parameter in
contract.getLogs
. Marked WIP because I was not sure if my approach was in line with the style of the rest of the code base, but I did not want to touchconstruct_event_filter_params
because that can also be used to create a filter (for whichblockHash
is not a valid parameter). Feedback/guidance on my approach would be appreciated!Cute Animal Picture