Skip to content

Commit

Permalink
Make --ethereum_node_debug_trace_call_url and --unsafe mutually exclu…
Browse files Browse the repository at this point in the history
…sive
  • Loading branch information
sherifahmed990 committed Nov 27, 2023
1 parent 449e7de commit 621e25e
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions voltaire_bundler/boot.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,6 @@ def initialize_argument_parser() -> ArgumentParser:
default="http://0.0.0.0:8545",
)

parser.add_argument(
"--ethereum_node_debug_trace_call_url",
type=str,
help="An Eth Client JSON-RPC Url for debug_traceCall only - defaults to ethereum_node_url value",
nargs="?",
const=None,
default=None,
)

parser.add_argument(
"--chain_id",
type=int,
Expand All @@ -161,7 +152,18 @@ def initialize_argument_parser() -> ArgumentParser:
default=False,
)

parser.add_argument(
group2 = parser.add_mutually_exclusive_group()

group2.add_argument(
"--ethereum_node_debug_trace_call_url",
type=str,
help="An Eth Client JSON-RPC Url for debug_traceCall only - defaults to ethereum_node_url value",
nargs="?",
const=None,
default=None,
)

group2.add_argument(
"--unsafe",
help="UNSAFE mode: no storage or opcode checks - when debug_traceCall is not available",
nargs="?",
Expand Down

0 comments on commit 621e25e

Please sign in to comment.