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

SHARD-1947 fix gasPrice issue #126

Merged
merged 1 commit into from
Mar 7, 2025
Merged

Conversation

shanejonas
Copy link
Contributor

@shanejonas shanejonas commented Mar 7, 2025

@shanejonas shanejonas changed the title fix: initial gas price issue fix SHARD-1947 fix gasPrice issue Mar 7, 2025
@@ -546,7 +546,7 @@ class Collector extends BaseExternal {
gas: '0x' + txObj.gasLimit.toString(16),
value: '0x' + txObj.value.toString('hex'),
input: '0x' + txObj.data.toString('hex'),
gasPrice: '0x' + txObj.getBaseFee().toString(16),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

In the existing code:

getBaseFee() returns the min gas the tx must have, not the gas price.

image

urnotsam
urnotsam previously approved these changes Mar 7, 2025
aniketdivekar
aniketdivekar previously approved these changes Mar 7, 2025
@mhanson-github mhanson-github changed the base branch from dev to mainnet-launch March 7, 2025 19:39
@mhanson-github mhanson-github dismissed stale reviews from aniketdivekar and urnotsam March 7, 2025 19:39

The base branch was changed.

@mhanson-github mhanson-github changed the base branch from mainnet-launch to dev March 7, 2025 19:39
@mhanson-github mhanson-github changed the base branch from dev to mainnet-launch March 7, 2025 21:10
@mhanson-github mhanson-github merged commit ebd4a28 into mainnet-launch Mar 7, 2025
@mhanson-github mhanson-github deleted the fix/gasprice-issue branch March 7, 2025 21:14
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.

4 participants