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

eth_estimateGas does not honor gascap = 0 #539

Open
crisand2 opened this issue Mar 11, 2025 · 0 comments
Open

eth_estimateGas does not honor gascap = 0 #539

crisand2 opened this issue Mar 11, 2025 · 0 comments

Comments

@crisand2
Copy link

System information

~# op-geth version
Geth
Version: 1.101411.6-stable
Git Commit: 50b3422b9ac682a8fa503c4f409339a9bff69717
Git Commit Date: 20250130
Upstream Version: 1.14.11-stable

Expected behaviour

return results (example on op-reth below)

curl -X POST localhost:8545 \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 161957,
    "method": "eth_estimateGas",
    "params": [
      {
        "from": "0x70c2D4F7b82D8E0966e885b090A50391c4969782",
        "maxFeePerGas": "0x22223b5",
        "maxPriorityFeePerGas": "0x32",
        "nonce": "0x1",
        "to": "0x28f379B5D1b992Bf10B958D74BF2Fc646c30B3Ff",
        "value": "0x0"
      }
    ]
  }'
{"jsonrpc":"2.0","id":161957,"result":"0x5208"}

Actual behaviour

curl -X POST localhost:8545 \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 161957,
    "method": "eth_estimateGas",
    "params": [
      {
        "from": "0x70c2D4F7b82D8E0966e885b090A50391c4969782",
        "maxFeePerGas": "0x22223b5",
        "maxPriorityFeePerGas": "0x32",
        "nonce": "0x1",
        "to": "0x28f379B5D1b992Bf10B958D74BF2Fc646c30B3Ff",
        "value": "0x0"
      }
    ]
  }'
{"jsonrpc":"2.0","id":161957,"error":{"code":-32000,"message":"gas required exceeds allowance (1698)"}}

even though --rpc.gascap=0 is set

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

No branches or pull requests

1 participant