Skip to content
Snippets Groups Projects
Commit 59faae6f authored by Vincent Texier's avatar Vincent Texier
Browse files

[enh] #95 set time argument optional in SimpleTransaction

parent f3d7145d
No related branches found
No related tags found
No related merge requests found
......@@ -832,7 +832,7 @@ Comment: {comment}
unlocks,
outputs,
comment,
time,
time=time,
version=version,
)
......@@ -1005,7 +1005,7 @@ class SimpleTransaction(Transaction):
unlocks: List[Unlock],
outputs: List[OutputSource],
comment: str,
time: int,
time: int = 0,
signing_key: SigningKey = None,
version: int = VERSION,
) -> None:
......@@ -1021,7 +1021,7 @@ class SimpleTransaction(Transaction):
:param unlocks: List of Unlock instances
:param outputs: List of OutputSource instances
:param comment: Comment field
:param time: time when the transaction enters the blockchain
:param time: time when the transaction enters the blockchain (default=0)
:param signing_key: SigningKey instance to sign the document (default=None)
:param version: Document version (default=transaction.VERSION)
"""
......@@ -1034,7 +1034,7 @@ class SimpleTransaction(Transaction):
unlocks,
outputs,
comment,
time,
time=time,
signing_key=signing_key,
version=version,
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment