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

fix!: handle missing size with computed lookup #1980

Merged
merged 8 commits into from
Apr 16, 2024

Conversation

antazoey
Copy link
Member

@antazoey antazoey commented Apr 2, 2024

What I did

fixes: #1935

Handles missing block size more gracefully. if it is there, we use it, else we have to look it up. also adds uncles field (would be needed if we had to calculate this thing), also handles a weird case where couldnt init a block from web3 data ( ethereum/web3.py#3326 )

How I did it

How to verify it

Checklist

  • All changes are completed
  • New test cases have been added
  • Documentation has been updated

src/ape/api/providers.py Show resolved Hide resolved
src/ape/api/providers.py Show resolved Hide resolved
src/ape/api/providers.py Outdated Show resolved Hide resolved
src/ape/api/providers.py Outdated Show resolved Hide resolved
src/ape_ethereum/ecosystem.py Outdated Show resolved Hide resolved
src/ape_ethereum/ecosystem.py Outdated Show resolved Hide resolved
antazoey and others added 3 commits April 9, 2024 08:38
Co-authored-by: El De-dog-lo <3859395+fubuloubu@users.noreply.github.com>
Co-authored-by: El De-dog-lo <3859395+fubuloubu@users.noreply.github.com>
@antazoey antazoey requested a review from fubuloubu April 9, 2024 13:41
@antazoey
Copy link
Member Author

antazoey commented Apr 9, 2024

@fubuloubu feedback addressed, lemme know

fubuloubu
fubuloubu previously approved these changes Apr 9, 2024
src/ape/api/providers.py Outdated Show resolved Hide resolved
Co-authored-by: El De-dog-lo <3859395+fubuloubu@users.noreply.github.com>
@NotPeopling2day NotPeopling2day changed the base branch from main to feat/08 April 16, 2024 01:14
@NotPeopling2day NotPeopling2day merged commit d62fe74 into ApeWorX:feat/08 Apr 16, 2024
16 checks passed
antazoey added a commit to antazoey/ape that referenced this pull request Apr 18, 2024
NotPeopling2day pushed a commit to antazoey/ape that referenced this pull request May 7, 2024
antazoey added a commit to antazoey/ape that referenced this pull request May 9, 2024
@antazoey antazoey deleted the fix/blocksize branch September 16, 2024 19:25
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.

"size" field missing for Blocks from newHeads subscription method
3 participants