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
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,16 @@ def build(output_dir: Path, contract_path: Path) -> Path:
"python",
str(contract_path.resolve()),
f"--out-dir={output_dir}",
"--no-output-arc32",
"--output-arc56",
"--output-source-map",
],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
text=True,
)

if build_result.stdout:
print(build_result.stdout)

if build_result.returncode:
raise Exception(f"Could not build contract:\n{build_result.stdout}")

Expand Down Expand Up @@ -143,6 +145,10 @@ def build(output_dir: Path, contract_path: Path) -> Path:
stderr=subprocess.STDOUT,
text=True,
)

if generate_result.stdout:
print(generate_result.stdout)

if generate_result.returncode:
if "No such command" in generate_result.stdout:
raise Exception(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,16 @@ def build(output_dir: Path, contract_path: Path) -> Path:
"python",
str(contract_path.resolve()),
f"--out-dir={output_dir}",
"--no-output-arc32",
"--output-arc56",
"--output-source-map",
],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
text=True,
)

if build_result.stdout:
print(build_result.stdout)

if build_result.returncode:
raise Exception(f"Could not build contract:\n{build_result.stdout}")

Expand Down Expand Up @@ -137,6 +139,10 @@ def build(output_dir: Path, contract_path: Path) -> Path:
stderr=subprocess.STDOUT,
text=True,
)

if generate_result.stdout:
print(generate_result.stdout)

if generate_result.returncode:
if "No such command" in generate_result.stdout:
raise Exception(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,16 @@ def build(output_dir: Path, contract_path: Path) -> Path:
"python",
str(contract_path.resolve()),
f"--out-dir={output_dir}",
"--no-output-arc32",
"--output-arc56",
"--output-source-map",
],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
text=True,
)

if build_result.stdout:
print(build_result.stdout)

if build_result.returncode:
raise Exception(f"Could not build contract:\n{build_result.stdout}")

Expand Down Expand Up @@ -143,6 +145,10 @@ def build(output_dir: Path, contract_path: Path) -> Path:
stderr=subprocess.STDOUT,
text=True,
)

if generate_result.stdout:
print(generate_result.stdout)

if generate_result.returncode:
if "No such command" in generate_result.stdout:
raise Exception(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,16 @@ def build(output_dir: Path, contract_path: Path) -> Path:
"python",
str(contract_path.resolve()),
f"--out-dir={output_dir}",
"--no-output-arc32",
"--output-arc56",
"--output-source-map",
],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
text=True,
)

if build_result.stdout:
print(build_result.stdout)

if build_result.returncode:
raise Exception(f"Could not build contract:\n{build_result.stdout}")

Expand Down Expand Up @@ -137,6 +139,10 @@ def build(output_dir: Path, contract_path: Path) -> Path:
stderr=subprocess.STDOUT,
text=True,
)

if generate_result.stdout:
print(generate_result.stdout)

if generate_result.returncode:
if "No such command" in generate_result.stdout:
raise Exception(
Expand Down
10 changes: 8 additions & 2 deletions examples/production_python/smart_contracts/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,16 @@ def build(output_dir: Path, contract_path: Path) -> Path:
"python",
str(contract_path.resolve()),
f"--out-dir={output_dir}",
"--no-output-arc32",
"--output-arc56",
"--output-source-map",
],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
text=True,
)

if build_result.stdout:
print(build_result.stdout)

if build_result.returncode:
raise Exception(f"Could not build contract:\n{build_result.stdout}")

Expand Down Expand Up @@ -143,6 +145,10 @@ def build(output_dir: Path, contract_path: Path) -> Path:
stderr=subprocess.STDOUT,
text=True,
)

if generate_result.stdout:
print(generate_result.stdout)

if generate_result.returncode:
if "No such command" in generate_result.stdout:
raise Exception(
Expand Down
10 changes: 8 additions & 2 deletions examples/starter_python/smart_contracts/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,16 @@ def build(output_dir: Path, contract_path: Path) -> Path:
"python",
str(contract_path.resolve()),
f"--out-dir={output_dir}",
"--no-output-arc32",
"--output-arc56",
"--output-source-map",
],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
text=True,
)

if build_result.stdout:
print(build_result.stdout)

if build_result.returncode:
raise Exception(f"Could not build contract:\n{build_result.stdout}")

Expand Down Expand Up @@ -143,6 +145,10 @@ def build(output_dir: Path, contract_path: Path) -> Path:
stderr=subprocess.STDOUT,
text=True,
)

if generate_result.stdout:
print(generate_result.stdout)

if generate_result.returncode:
if "No such command" in generate_result.stdout:
raise Exception(
Expand Down
10 changes: 8 additions & 2 deletions template_content/smart_contracts/__main__.py.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,16 @@ def build(output_dir: Path, contract_path: Path) -> Path:
"python",
str(contract_path.resolve()),
f"--out-dir={output_dir}",
"--no-output-arc32",
"--output-arc56",
"--output-source-map",
],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
text=True,
)

if build_result.stdout:
print(build_result.stdout)

if build_result.returncode:
raise Exception(f"Could not build contract:\n{build_result.stdout}")

Expand Down Expand Up @@ -151,6 +153,10 @@ def build(output_dir: Path, contract_path: Path) -> Path:
stderr=subprocess.STDOUT,
text=True,
)

if generate_result.stdout:
print(generate_result.stdout)

if generate_result.returncode:
if "No such command" in generate_result.stdout:
raise Exception(
Expand Down