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-1950 - fix: gas calculation returns non hex #125

Merged
merged 1 commit into from
Mar 11, 2025
Merged

Conversation

shanejonas
Copy link
Contributor

@shanejonas shanejonas commented Mar 7, 2025

I found this bug while fixing/testing SHARD-1947 locally where its trying to add integers then transform it back to a string but didnt put it into hex, so it was returning gas: "0x21000". i can reproduce locally but not on itn4 rpc url.

fixes: https://linear.app/shm/issue/SHARD-1950/gas-calculation-on-json-rpc-server-should-return-appropriate-hex-value

urnotsam
urnotsam previously approved these changes Mar 7, 2025
@justin-shardeum justin-shardeum changed the title fix: gas calculation returns non hex SHARD-1950 - fix: gas calculation returns non hex Mar 7, 2025
@BelfordZ
Copy link
Contributor

BelfordZ commented Mar 7, 2025

Need to rebase your commits and make sure to sign them

@shanejonas shanejonas force-pushed the fix/gas-calc branch 3 times, most recently from a063e8f to 570906f Compare March 10, 2025 19:43
@shanejonas
Copy link
Contributor Author

@BelfordZ @urnotsam i fixed this up to use hexToBN to do the adding instead of just adding ints. as well as rebased and signed the commit

@mhanson-github mhanson-github merged commit 58005b1 into dev Mar 11, 2025
7 checks passed
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