Skip to content

Commit

Permalink
update kevm-pyk run command
Browse files Browse the repository at this point in the history
  • Loading branch information
anvacaru committed Jan 14, 2025
1 parent 123fd4f commit 3cd7248
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kevm-pyk/src/kevm_pyk/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

from . import VERSION, config
from .cli import _create_argument_parser, generate_options, get_argument_type_setter, get_option_string_destination
from .gst_to_kore import SORT_ETHEREUM_SIMULATION, gst_to_kore, kore_pgm_to_kore
from .gst_to_kore import SORT_ETHEREUM_SIMULATION, filter_gst_keys, gst_to_kore, kore_pgm_to_kore
from .kevm import KEVM, KEVMSemantics, kevm_node_printer
from .kompile import KompileTarget, kevm_kompile
from .utils import (
Expand Down Expand Up @@ -591,7 +591,8 @@ def exec_run(options: RunOptions) -> None:

try:
json_read = json.loads(options.input_file.read_text())
kore_pattern = gst_to_kore(json_read, options.schedule, options.mode, options.chainid, options.usegas)
gst_data = filter_gst_keys(json_read)
kore_pattern = gst_to_kore(gst_data, options.schedule, options.mode, options.chainid, options.usegas)
except json.JSONDecodeError:
pgm_token = KToken(options.input_file.read_text(), KSort('EthereumSimulation'))
kast_pgm = kevm.parse_token(pgm_token)
Expand Down

0 comments on commit 3cd7248

Please sign in to comment.