Skip to content

Commit

Permalink
Code review - avoiding evmon-t8n missing
Browse files Browse the repository at this point in the history
Co-authored-by: danceratopz <[email protected]>
  • Loading branch information
pdobacz and danceratopz committed Oct 18, 2024
1 parent 498500e commit e2e9543
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/cli/eofwrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e2e9543

Please sign in to comment.