diff --git a/src/cli/eofwrap.py b/src/cli/eofwrap.py index 7ed3fcaf47..664b98217b 100644 --- a/src/cli/eofwrap.py +++ b/src/cli/eofwrap.py @@ -13,12 +13,14 @@ import json import os +import sys from pathlib import Path from typing import Any, no_type_check import click from cli.evm_bytes import OpcodeWithOperands, process_evm_bytes +from ethereum_clis import CLINotFoundInPath from ethereum_clis.clis.evmone import EvmOneTransitionTool from ethereum_test_base_types.base_types import Bytes from ethereum_test_base_types.conversions import to_hex @@ -47,6 +49,14 @@ def eof_wrap(input: str, output_dir: str, traces: bool): """ eof_wrapper = EofWrapper() + try: + EvmOneTransitionTool() + except CLINotFoundInPath: + print(f"Error: {EvmOneTransitionTool.default_binary} must be in the PATH.") + sys.exit(1) + except Exception as e: + raise Exception(f"Unexpected exception: {e}.") + if os.path.isfile(input): file = os.path.basename(input) out_file = "eof_wrapped_" + file