kopia lustrzana https://github.com/bugout-dev/moonworm
Merge pull request #79 from bugout-dev/deploy-verbose-fix
print tx.info only if flag is givenpull/80/head^2 v0.2.3
commit
09ea2280bd
|
@ -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)
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
MOONWORM_VERSION = "0.2.2"
|
||||
MOONWORM_VERSION = "0.2.3"
|
||||
|
|
Ładowanie…
Reference in New Issue