Skip to content

fix(provider): remove inverted condition in convert_to_hashes#3609

Closed
aso20455 wants to merge 1 commit intoalloy-rs:mainfrom
aso20455:fix/convert-to-hashes-inverted-logic
Closed

fix(provider): remove inverted condition in convert_to_hashes#3609
aso20455 wants to merge 1 commit intoalloy-rs:mainfrom
aso20455:fix/convert-to-hashes-inverted-logic

Conversation

@aso20455
Copy link
Contributor

The condition if block.transactions().is_empty() was inverted - it only converted to hashes when there were NO transactions, which is pointless. When the block actually had transactions, they were never converted.

Removed the unnecessary check since BlockTransactions::convert_to_hashes() already handles this internally by checking if !self.is_hashes().

Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

this isnt equivalent

@mattsse mattsse closed this Jan 28, 2026
@github-project-automation github-project-automation bot moved this to Done in Alloy Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants