Skip to content

Commit

Permalink
Debug methods group
Browse files Browse the repository at this point in the history
Added debug methods group for easier enabling debug_* methods
  • Loading branch information
Termina1 authored Mar 14, 2023
1 parent 7c1e8a0 commit 26d518d
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,16 @@ class DefaultEthereumMethods(
"trace_get",
"trace_transaction",
)

val debugMethods = listOf(
"debug_storageRangeAt",
"debug_traceBlock",
"debug_traceBlockByHash",
"debug_traceBlockByNumber",
"debug_traceCall",
"debug_traceCallMany",
"debug_traceTransaction"
)
}

private val anyResponseMethods = listOf(
Expand Down Expand Up @@ -352,6 +362,7 @@ class DefaultEthereumMethods(
when (groupName) {
"filter" -> filterMethods
"trace" -> traceMethods
"debug" -> debugMethods
else -> emptyList()
}.toSet()

Expand Down

0 comments on commit 26d518d

Please sign in to comment.