From 5a8a96383e7c98b6364f35860a902a727bcf4436 Mon Sep 17 00:00:00 2001 From: m-kus Date: Fri, 18 Sep 2020 15:10:24 +0300 Subject: [PATCH] Forward injection arguments --- pytezos/michelson/interface.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pytezos/michelson/interface.py b/pytezos/michelson/interface.py index 23c334b01..5584440c3 100644 --- a/pytezos/michelson/interface.py +++ b/pytezos/michelson/interface.py @@ -144,10 +144,19 @@ def operation_group(self) -> OperationGroup: parameters=self.parameters) \ .fill() - def inject(self): + def inject(self, _async=True, preapply=True, check_result=True, num_blocks_wait=2): """ Autofill, sign and inject resulting operation group. + + :param _async: do not wait for operation inclusion (default is True) + :param preapply: do a preapply before injection + :param check_result: raise RpcError in case operation is refused + :param num_blocks_wait: number of blocks to wait for injection """ - return self.operation_group.autofill().sign().inject() + return self.operation_group.autofill().sign().inject( + _async=_async, + preapply=preapply, + check_result=check_result, + num_blocks_wait=num_blocks_wait) def cmdline(self): """ Generate command line for tezos client.