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

[enh] #95 set time argument optional in SimpleTransaction

parent 2c9e70c0
No related branches found
No related tags found
2 merge requests!157v1.0.0rc0: merge dev into master,!144#95, #172: BBC: Arguments changes on 'Documents' constructors: Remove 'signature', introduce 'signing_key', make 'currency' and 'version' optionals
......@@ -832,7 +832,7 @@ Comment: {comment}
unlocks,
outputs,
comment,
time,
time=time,
version=version,
)
......@@ -1000,7 +1000,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:
......@@ -1016,7 +1016,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)
"""
......@@ -1029,7 +1029,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