diff --git a/steembase/operations.py b/steembase/operations.py index b7364c8..3cd6ae5 100644 --- a/steembase/operations.py +++ b/steembase/operations.py @@ -201,7 +201,20 @@ def __init__(self, *args, **kwargs): ('weight', Int16(kwargs["weight"])), ])) + +class DeleteComment(GrapheneObject): + def __init__(self, *args, **kwargs): + if isArgsThisClass(self, args): + self.data = args[0].data + else: + if len(args) == 1 and len(kwargs) == 0: + kwargs = args[0] + super().__init__(OrderedDict([ + ('author', String(kwargs["author"])), + ('permlink', String(kwargs["permlink"])) + ])) + class Comment(GrapheneObject): def __init__(self, *args, **kwargs): if isArgsThisClass(self, args):