Return eth_call to available methods (#251)

This commit is contained in:
KirillPamPam
2023-07-18 12:53:16 +04:00
committed by GitHub
parent ea332fb522
commit e074a21e16
2 changed files with 34 additions and 1 deletions

View File

@@ -82,6 +82,7 @@ class DefaultEthereumMethods(
)
private val firstValueMethods = listOf(
"eth_call",
"eth_getBlockTransactionCountByHash",
"eth_getUncleCountByBlockHash",
"eth_getBlockByHash",
@@ -148,7 +149,6 @@ class DefaultEthereumMethods(
possibleNotIndexedMethods.contains(method) -> NotNullQuorum()
specialMethods.contains(method) -> {
when (method) {
"eth_call" -> AlwaysQuorum()
"eth_getTransactionCount" -> AlwaysQuorum()
"eth_getBalance" -> AlwaysQuorum()
"eth_sendRawTransaction" -> BroadcastQuorum()