Skip to content

Comments

perf: add Display for HaltReason and OutOfGasError#3265

Merged
rakita merged 1 commit intobluealloy:mainfrom
RyanBGG:uifmt
Dec 31, 2025
Merged

perf: add Display for HaltReason and OutOfGasError#3265
rakita merged 1 commit intobluealloy:mainfrom
RyanBGG:uifmt

Conversation

@RyanBGG
Copy link
Contributor

@RyanBGG RyanBGG commented Dec 30, 2025

Adds Display implementations for HaltReason and OutOfGasError to improve error messages.

Previously these types only had Debug, so errors showed up as Halt { reason: OutOfGas(Basic) } instead of readable messages like "out of gas".

@RyanBGG
Copy link
Contributor Author

RyanBGG commented Dec 30, 2025

BTW This was inconsistent with InvalidTransaction and InvalidHeader which already have Display impls.

@codspeed-hq
Copy link

codspeed-hq bot commented Dec 30, 2025

CodSpeed Performance Report

Merging #3265 will not alter performance

Comparing RyanBGG:uifmt (ec2317b) with main (2c1153b)

Summary

✅ 173 untouched

Copy link
Member

@rakita rakita left a comment

Choose a reason for hiding this comment

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

This is nice

@rakita rakita merged commit db8ce32 into bluealloy:main Dec 31, 2025
31 checks passed
@github-actions github-actions bot mentioned this pull request Dec 30, 2025
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.

2 participants