Merge pull request #79 from bugout-dev/deploy-verbose-fix

print tx.info only if flag is given
pull/80/head^2 v0.2.3
Yhtyyar Sahatov 2022-05-24 13:13:01 +03:00 zatwierdzone przez GitHub
commit 09ea2280bd
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 10 dodań i 2 usunięć

Wyświetl plik

@ -413,7 +413,15 @@ def generate_deploy_handler(
function_body_raw.append(method_call_result_statement)
function_body_raw.append(cst.parse_statement("print(result)"))
function_body_raw.append(cst.parse_statement("print(result.info())"))
verbose_print = cst.If(
test=cst.parse_expression("args.verbose"),
body=cst.IndentedBlock(
body=[
cst.parse_statement("print(result.info())"),
]
),
)
function_body_raw.append(verbose_print)
function_body = cst.IndentedBlock(body=function_body_raw)

Wyświetl plik

@ -1 +1 @@
MOONWORM_VERSION = "0.2.2"
MOONWORM_VERSION = "0.2.3"