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: deduplicate validate_initial_tx_gas API #2006

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Wodann
Copy link
Contributor

@Wodann Wodann commented Jan 17, 2025

Instance of #1997

Copy link

codspeed-hq bot commented Jan 17, 2025

CodSpeed Performance Report

Merging #2006 will not alter performance

Comparing NomicFoundation:refactor/minimal-api (6c6499b) with main (39eaab7)

Summary

✅ 8 untouched benchmarks

Comment on lines +77 to +80
let initial_and_floor_gas =
validate_initial_tx_gas(context.tx(), spec).map_err(InvalidTransaction::from)?;

Ok(initial_and_floor_gas)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
let initial_and_floor_gas =
validate_initial_tx_gas(context.tx(), spec).map_err(InvalidTransaction::from)?;
Ok(initial_and_floor_gas)
validate_initial_tx_gas(context.tx(), spec).map_err(From::from)

should work

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.

lgtm. One nit

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