Skip to content

Async Get_balances at a specific block returns current block#3043

Merged
basfroman merged 2 commits intostagingfrom
fix/roman/Async-Get_balances-at-a-specific-block-returns-current-block
Sep 3, 2025
Merged

Async Get_balances at a specific block returns current block#3043
basfroman merged 2 commits intostagingfrom
fix/roman/Async-Get_balances-at-a-specific-block-returns-current-block

Conversation

@basfroman
Copy link
Collaborator

@basfroman basfroman commented Sep 3, 2025

Fix for #3038

@basfroman basfroman requested a review from a team September 3, 2025 01:28
@basfroman basfroman self-assigned this Sep 3, 2025
@basfroman basfroman added the bug Something isn't working label Sep 3, 2025
@basfroman basfroman merged commit 1bd8c2f into staging Sep 3, 2025
232 checks passed
@basfroman basfroman deleted the fix/roman/Async-Get_balances-at-a-specific-block-returns-current-block branch September 3, 2025 19:28
Comment on lines -1238 to -1239
elif not block_hash:
block_hash = await self.get_block_hash()
Copy link
Contributor

Choose a reason for hiding this comment

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

How about

elif block_hash is None and block is None:

That way they can specify blockhash without an extra network call.

Also using is None instead of checking for a false-y value because block can be 0

This was referenced Sep 5, 2025
basfroman added a commit that referenced this pull request Oct 14, 2025
…-at-a-specific-block-returns-current-block

Async Get_balances at a specific block returns current block
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Async Get_balances at a specific block returns current block

3 participants