Skip to content
Open
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.23
0.1.24
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 = "hatchling.build"

[project]
name = "skribe"
version = "0.1.23"
version = "0.1.24"
description = "Property testing for Stylus smart contracts"
readme = "README.md"
requires-python = "~=3.10"
Expand Down
2 changes: 1 addition & 1 deletion src/skribe/contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def methods(self) -> tuple[Method, ...]:
id=0,
abi=method_abi,
ast=None,
contract_name_with_path='',
contract_name_with_path=self.name_with_path,
contract_digest='',
contract_storage_digest='',
sort=KSort(f'{EVMContract.escaped(self.name_with_path, "S2K")}Method'),
Expand Down
13 changes: 3 additions & 10 deletions src/skribe/skribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,7 @@ def build_contract(self) -> None:
foundry.build(True)
else:
run_process(
[
str(self._cargo_bin),
'build',
'--lib',
'--release',
'--target',
'wasm32-unknown-unknown',
],
[str(self._cargo_bin), 'stylus', 'build'],
cwd=self.contract_dir,
check=True,
)
Expand Down Expand Up @@ -196,6 +189,7 @@ def calldata_to_kore(data: bytes) -> Pattern:
template_config_kore = kast_to_kore(self.definition.kdefinition, template_config, GENERATED_TOP_CELL)
template_subst = {CALLDATA_EVAR: argument_strategy(binding).map(calldata_to_kore)}

task.start()
fuzz(
self.definition.path,
template_config_kore,
Expand All @@ -205,6 +199,7 @@ def calldata_to_kore(data: bytes) -> Pattern:
handler=KometFuzzHandler(self.definition, task),
subst_func=subst_on_k_cell,
)
task.end()

def select_tests(self, contract: ArbitrumContract, id: str | None) -> list[Method]:
test_methods = []
Expand Down Expand Up @@ -260,9 +255,7 @@ def deploy_and_run_contract(
with FuzzProgress(tests, max_examples) as progress:
for task in progress.fuzz_tasks:
try:
task.start()
self.run_test(template_conf, init_subst, task.binding, max_examples, task)
task.end()
except FuzzError as e:
task.fail()
errors.append(e)
Expand Down
5 changes: 5 additions & 0 deletions src/tests/integration/data/contracts/call-hello/Stylus.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[workspace]

[workspace.networks]

[contract]
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[workspace]

[workspace.networks]

[contract]
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.