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

Wrong Intrinsic Gas Cost in eth_sendRawTransaction precheck #1631

Closed
georgi-l95 opened this issue Aug 11, 2023 · 1 comment · Fixed by #1637 or #1774
Closed

Wrong Intrinsic Gas Cost in eth_sendRawTransaction precheck #1631

georgi-l95 opened this issue Aug 11, 2023 · 1 comment · Fixed by #1637 or #1774
Assignees
Labels
bug Something isn't working
Milestone

Comments

@georgi-l95
Copy link
Collaborator

Description

Wrong intrinsic gas is calculated by eth_sendRawTransaction precheck in all cases. For example deploying this greeter contract takes around 79-80k gas, but relay calculates that it needs at least 160k. This results in error throw in the relay even before the transaction reaches consensus node.

This bug didn't surface until now, because we've used hardcoded values for estimateGas, now that we have precise calculation of estimate gas from the mirror-node it appears that relay calculations were wrong.

Steps to reproduce

  1. Deploy contract using image from this PR, which now calculates correct estimateGas

Additional context

No response

Hedera network

other

Version

main

Operating system

None

@kabaluyot
Copy link

Got similar issues because of eth_sendRawTransaction too checking from logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment