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 linea_estimateGas when called with gasPrice set #58

Merged
merged 3 commits into from
Jul 30, 2024

Conversation

fab-10
Copy link
Contributor

@fab-10 fab-10 commented Jul 30, 2024

Fix for this incorrect response, since baseFee is 7 wei

curl https://rpc.sepolia.linea.build/ \
       -X POST \
       -H "Content-Type: application/json" \
       -d '{"jsonrpc": "2.0","method": "linea_estimateGas","params": [{"from": "0x432C961E222FC3522FD31af85E84C6240fF0b46F","gasPrice":"0x110000000007","gas":"0x21000"}],"id": 53}'
{"jsonrpc":"2.0","id":53,"error":{"code":-32000,"message":"gasPrice is less than the current BaseFee"}}%

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
@fab-10 fab-10 self-assigned this Jul 30, 2024
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
@fab-10 fab-10 requested a review from Filter94 July 30, 2024 13:27
@fab-10 fab-10 merged commit 3dd537e into main Jul 30, 2024
6 checks passed
@fab-10 fab-10 deleted the fix-linea-estimate-gas-gas-price branch July 30, 2024 14:26
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