Skip to content
Snippets Groups Projects
Commit b26eb7ed authored by Mariusz Trela's avatar Mariusz Trela
Browse files

Extension in 'update_proposal' is internally created

parent 19a85f2b
No related branches found
No related tags found
1 merge request!6Extension in 'update_proposal' is internally created
......@@ -363,7 +363,7 @@ class UpdateProposalExtensions(Static_variant):
else:
type_id = ~0
else:
type_id, data = o
type_id, data = o
if type_id == 1:
data = (UpdateProposalEndDate(o['value']))
......
......@@ -402,8 +402,9 @@ class Update_proposal(GrapheneObject):
prefix = kwargs.get("prefix", default_prefix)
extensions = Array([])
if "extensions" in kwargs and kwargs["extensions"]:
extensions = Array([UpdateProposalExtensions(o) for o in kwargs["extensions"]])
if "end_date" in kwargs and kwargs["end_date"]:
extension = { 'type': 'update_proposal_end_date', 'value': {'end_date': kwargs["end_date"]} }
extensions = Array([UpdateProposalExtensions(extension)])
super(Update_proposal, self).__init__(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment