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

ContractCaller initializes without validating the block_identifier #3257

Merged
merged 3 commits into from
Feb 27, 2024

Conversation

reedsa
Copy link
Contributor

@reedsa reedsa commented Feb 26, 2024

What was wrong?

Closes #2816

How was it fixed?

Remove call to parse_block_identifier when initializing ContractCaller functions. The validation occurs when calling the function itself.

Todo:

Cute Animal Picture

Screen Shot 2024-02-26 at 4 17 26 PM

reedsa added a commit to reedsa/web3.py that referenced this pull request Feb 26, 2024
reedsa added a commit to reedsa/web3.py that referenced this pull request Feb 26, 2024
Copy link
Contributor

@pacrob pacrob left a comment

Choose a reason for hiding this comment

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

lgtm!

Copy link
Collaborator

@fselmo fselmo left a comment

Choose a reason for hiding this comment

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

lgtm. Do we have a test that tests a block hash as the block id? I think that was the case in question right?

@reedsa
Copy link
Contributor Author

reedsa commented Feb 27, 2024

@fselmo Good catch, added those in and cleaned up those tests a bit more.

@fselmo
Copy link
Collaborator

fselmo commented Feb 27, 2024

Sounds good. Ship it!

@reedsa reedsa merged commit 9ed102d into ethereum:main Feb 27, 2024
85 checks passed
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.

Call contract function using block hash makes two requests inside
3 participants