From 1599fb2c4d25540aa5de8c62a6a18be4aa067549 Mon Sep 17 00:00:00 2001 From: Burak Bilge Yalcinkaya Date: Tue, 17 Dec 2024 10:59:36 +0300 Subject: [PATCH] fix `--directory`: find `kasmer.json` in the specified dir. --- src/komet/komet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/komet/komet.py b/src/komet/komet.py index fe0a1c4..46e3027 100644 --- a/src/komet/komet.py +++ b/src/komet/komet.py @@ -98,7 +98,7 @@ def _exec_test(*, dir_path: Path | None, wasm: Path | None, max_examples: int, i # We build the contract here, specifying where it's saved so we know where to find it. # Knowing where the compiled contract is saved by default when building it would eliminate # the need for this step, but at the moment I don't know how to retrieve that information. - child_wasms = _read_config_file(kasmer) + child_wasms = _read_config_file(kasmer, dir_path) wasm = kasmer.build_soroban_contract(dir_path) kasmer.deploy_and_run(wasm, child_wasms, max_examples, id) @@ -120,7 +120,7 @@ def _exec_prove_run( child_wasms: tuple[Path, ...] = () if wasm is None: - child_wasms = _read_config_file(kasmer) + child_wasms = _read_config_file(kasmer, dir_path) wasm = kasmer.build_soroban_contract(dir_path) kasmer.deploy_and_prove(wasm, child_wasms, id, proof_dir, bug_report)