From 8b609ee2d194ee715abc3020d7142c837e0db638 Mon Sep 17 00:00:00 2001 From: KirillPamPam Date: Tue, 26 Mar 2024 16:26:01 +0400 Subject: [PATCH] Add linea method and fix docs (#443) --- docs/04-upstream-config.adoc | 4 ---- .../dshackle/upstream/calls/DefaultEthereumMethods.kt | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/04-upstream-config.adoc b/docs/04-upstream-config.adoc index 74acd5c5..0113c211 100644 --- a/docs/04-upstream-config.adoc +++ b/docs/04-upstream-config.adoc @@ -220,10 +220,6 @@ You can specify this modes through `connector-mode` parameter in connection conf - `eth_getUncleByBlockNumberAndIndex` - `eth_feeHistory` - `eth_getLogs` -- `eth_getFilterChanges` -- `eth_newFilter` -- `eth_newBlockFilter` -- `eth_newPendingTransactionFilter` .Plus following methods are answered directly by Dshackle - `net_version` diff --git a/src/main/kotlin/io/emeraldpay/dshackle/upstream/calls/DefaultEthereumMethods.kt b/src/main/kotlin/io/emeraldpay/dshackle/upstream/calls/DefaultEthereumMethods.kt index 3372bc9f..aa4217e6 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/upstream/calls/DefaultEthereumMethods.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/upstream/calls/DefaultEthereumMethods.kt @@ -324,6 +324,10 @@ class DefaultEthereumMethods( .plus(harmonySpecialMethods) .plus(harmonyPossibleNotIndexedMethods) + Chain.LINEA__MAINNET, Chain.LINEA__GOERLI -> listOf( + "linea_estimateGas", + ) + else -> emptyList() } }