Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.67
0.1.68
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "komet"
version = "0.1.67"
version = "0.1.68"
description = "K tooling for the Soroban platform"
authors = [
"Runtime Verification, Inc. <contact@runtimeverification.com>",
Expand Down
8 changes: 4 additions & 4 deletions src/komet/kasmer.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ def _which(self, cmd: str) -> Path:
return Path(path_str)

@cached_property
def _soroban_bin(self) -> Path:
return self._which('soroban')
def _stellar_bin(self) -> Path:
return self._which('stellar')

@cached_property
def _cargo_bin(self) -> Path:
Expand All @@ -89,7 +89,7 @@ def _cargo_bin(self) -> Path:
def contract_bindings(self, wasm_contract: Path) -> list[ContractBinding]:
"""Reads a soroban wasm contract, and returns a list of the function bindings for it."""
proc_res = run_process(
[str(self._soroban_bin), 'contract', 'bindings', 'json', '--wasm', str(wasm_contract)], check=False
[str(self._stellar_bin), 'contract', 'bindings', 'json', '--wasm', str(wasm_contract)], check=False
)
bindings_list = json.loads(proc_res.stdout)
bindings = []
Expand Down Expand Up @@ -133,7 +133,7 @@ def build_soroban_contract(self, contract_path: Path, out_dir: Path | None = Non
if out_dir is None:
out_dir = Path(mkdtemp(f'komet_{str(contract_path.stem)}'))

run_process([str(self._soroban_bin), 'contract', 'build', '--out-dir', str(out_dir)], cwd=contract_path)
run_process([str(self._stellar_bin), 'contract', 'build', '--out-dir', str(out_dir)], cwd=contract_path)

return out_dir / contract_name

Expand Down