Skip to content
Snippets Groups Projects
Commit c27f63bb authored by Dariusz Kędzierski's avatar Dariusz Kędzierski
Browse files

Add update_proposal_operation

- Added update_proposal_operation
- Fixed copy/paste error in remove_proposal
parent be406c90
No related branches found
No related tags found
2 merge requests!5Taken current version of master branch in the https://github.com/holgern/beem,!4Original changes pushed to master at https://github.com/holgern/beem
......@@ -50,7 +50,8 @@ ops = [
'account_update2',
'create_proposal',
'update_proposal_votes',
'remove_proposal',
'remove_proposal',
'update_proposal',
'fill_convert_request',
'author_reward',
'curation_reward',
......
......@@ -391,11 +391,30 @@ class Remove_proposal(GrapheneObject):
super(Remove_proposal, self).__init__(
OrderedDict([
('proposal_owner', String(kwargs["voter"])),
('proposal_owner', String(kwargs["proposal_owner"])),
('proposal_ids', Array(proposal_ids)),
('extensions', extensions)
]))
class Update_proposal(GrapheneObject):
def __init__(self, *args, **kwargs):
if check_for_class(self, args):
return
if len(args) == 1 and len(kwargs) == 0:
kwargs = args[0]
prefix = kwargs.get("prefix", default_prefix)
extensions = Array([])
super(Update_proposal, self).__init__(
OrderedDict([
('proposal_id', Uint64(kwargs["proposal_id"])),
('creator', String(kwargs["creator"])),
('daily_pay', Amount(kwargs["daily_pay"], prefix = prefix)),
('subject', String(kwargs["subject"])),
('permlink', String(kwargs["permlink"])),
('extensions', extensions)
]))
class Witness_set_properties(GrapheneObject):
def __init__(self, *args, **kwargs):
......
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