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

Move IntrinsicGas to fixedgas #13568

Merged
merged 1 commit into from
Jan 27, 2025
Merged

Move IntrinsicGas to fixedgas #13568

merged 1 commit into from
Jan 27, 2025

Conversation

shohamc1
Copy link
Member

No description provided.

@antonis19
Copy link
Member

Can you provide some motivation for this PR? Was this needed because you need to import this function from inside erigon-lib?

Comment on lines +444 to +445
if overflow {
return nil, ErrGasUintOverflow
Copy link
Member

Choose a reason for hiding this comment

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

I see you've moved the error up the call stack. What's the motivation behind this change?

Copy link
Member Author

Choose a reason for hiding this comment

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

IntrinsicGas is CalcIntrinsicGas + additional calculation. I think it makes sense for both of them to behave similarly and have the same return values.

@shohamc1
Copy link
Member Author

@antonis19 It was missed out in a previous PR #13456. This solves a circular import on my AA branch.

@shohamc1 shohamc1 merged commit 71835a4 into main Jan 27, 2025
13 checks passed
@shohamc1 shohamc1 deleted the shohamc1/move-intrinsic-gas-2 branch January 27, 2025 10: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.

2 participants