Skip to content

Commit

Permalink
Forward injection arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kus committed Sep 18, 2020
1 parent 49716f7 commit 5a8a963
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions pytezos/michelson/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5a8a963

Please sign in to comment.