Skip to content

Commit

Permalink
fix: allow to overwrite prefix when changing witness data
Browse files Browse the repository at this point in the history
  • Loading branch information
xeroc committed Oct 11, 2023
1 parent ab35200 commit 43f5e93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bitsharesbase/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -675,14 +675,14 @@ def __init__(self, *args, **kwargs):
if isArgsThisClass(self, args):
self.data = args[0].data
else:
prefix = kwargs.get("prefix", default_prefix)
if len(args) == 1 and len(kwargs) == 0:
kwargs = args[0]
if "new_url" in kwargs and kwargs["new_url"]:
new_url = Optional(String(kwargs["new_url"]))
else:
new_url = Optional(None)

prefix = kwargs.get("prefix", default_prefix)
if "new_signing_key" in kwargs and kwargs["new_signing_key"]:
new_signing_key = Optional(
PublicKey(kwargs["new_signing_key"], prefix=prefix)
Expand Down

0 comments on commit 43f5e93

Please sign in to comment.