From 4a94058bc8c4b17b68910d6405978c55217cfc99 Mon Sep 17 00:00:00 2001 From: Vyacheslav Date: Wed, 2 Aug 2023 10:37:23 +0300 Subject: [PATCH] eth_getProof support (#267) --- .../dshackle/upstream/calls/DefaultEthereumMethods.kt | 3 ++- .../emeraldpay/dshackle/upstream/calls/EthereumCallSelector.kt | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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 4d4a84fc..295adceb 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/upstream/calls/DefaultEthereumMethods.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/upstream/calls/DefaultEthereumMethods.kt @@ -139,7 +139,8 @@ class DefaultEthereumMethods( "eth_getCode", "eth_getUncleByBlockHashAndIndex", "eth_getLogs", - "eth_maxPriorityFeePerGas" + "eth_maxPriorityFeePerGas", + "eth_getProof" ) private val specialMethods = listOf( diff --git a/src/main/kotlin/io/emeraldpay/dshackle/upstream/calls/EthereumCallSelector.kt b/src/main/kotlin/io/emeraldpay/dshackle/upstream/calls/EthereumCallSelector.kt index dba0b9a4..3dd456df 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/upstream/calls/EthereumCallSelector.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/upstream/calls/EthereumCallSelector.kt @@ -41,6 +41,7 @@ class EthereumCallSelector( private val TAG_METHODS = setOf( "eth_getBalance", "eth_getCode", + "eth_getProof", "eth_getTransactionCount", // no "eth_getStorageAt" because it has different structure, and therefore separate logic "eth_call",