Skip to content

Commit

Permalink
Debug directoty
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementWalter committed Oct 21, 2024
1 parent 594abfe commit 08caea1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions kakarot_scripts/utils/kakarot.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ def get_solidity_artifacts(
f"Found: {target_solidity_file_path}"
)

print(f"{target_solidity_file_path=}")

target_compilation_output = [
compilation
for compilation in all_compilation_outputs
Expand All @@ -109,7 +111,19 @@ def get_solidity_artifacts(
)
]

print(f"{target_compilation_output=}")

if len(target_compilation_output) != 1:
import os

for root, dirs, files in os.walk(foundry_file["profile"]["default"]["out"]):
print(root)
print(dirs)
for file in files:
print(file)

print(json.dumps(all_compilation_outputs, indent=2))

raise ValueError(
f"Cannot locate a unique compilation output for target {target_solidity_file_path[0]}: "
f"found {len(target_compilation_output)} outputs:\n{target_compilation_output}"
Expand Down

0 comments on commit 08caea1

Please sign in to comment.