fix: add missing historical RPC endpoints for Optimism pre-bedrock (#16976)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Matthias Seitz
2025-06-20 19:56:43 +02:00
committed by GitHub
parent 85e6e979c2
commit 9961d46bb1

View File

@@ -114,10 +114,12 @@ where
parse_block_id_from_params(&req.params(), 0)
}
"eth_getBalance" |
"eth_getStorageAt" |
"eth_getCode" |
"eth_getTransactionCount" |
"eth_call" => parse_block_id_from_params(&req.params(), 1),
"eth_call" |
"eth_estimateGas" |
"eth_createAccessList" => parse_block_id_from_params(&req.params(), 1),
"eth_getStorageAt" | "eth_getProof" => parse_block_id_from_params(&req.params(), 2),
_ => None,
};