Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removes bran from GroupMultisigRotate constructor inplace of an existing Habery #780

Merged
merged 1 commit into from
May 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/keri/app/cli/commands/multisig/rotate.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ def rotateGroupIdentifier(args):
"""

data = config.parseData(args.data) if args.data is not None else None

rotDoer = GroupMultisigRotate(name=args.name, base=args.base, alias=args.alias, smids=args.smids, rmids=args.rmids,
bran=args.bran, wits=args.witnesses, cuts=args.cuts, adds=args.witness_add,
hby = existing.setupHby(name=args.name, base=args.base, bran=args.bran)
rotDoer = GroupMultisigRotate(hby=hby, alias=args.alias, smids=args.smids, rmids=args.rmids,
wits=args.witnesses, cuts=args.cuts, adds=args.witness_add,
isith=args.isith, nsith=args.nsith, toad=args.toad, data=data)

doers = [rotDoer]
Expand All @@ -70,7 +70,7 @@ class GroupMultisigRotate(doing.DoDoer):

"""

def __init__(self, name, base, bran, alias, smids=None, rmids=None, isith=None, nsith=None,
def __init__(self, hby, alias, smids=None, rmids=None, isith=None, nsith=None,
toad=None, wits=None, cuts=None, adds=None, data: list = None):

self.alias = alias
Expand All @@ -80,12 +80,12 @@ def __init__(self, name, base, bran, alias, smids=None, rmids=None, isith=None,
self.smids = smids
self.rmids = rmids
self.data = data
self.hby = hby

self.wits = wits if wits is not None else []
self.cuts = cuts if cuts is not None else []
self.adds = adds if adds is not None else []

self.hby = existing.setupHby(name=name, base=base, bran=bran)
self.hbyDoer = habbing.HaberyDoer(habery=self.hby) # setup doer
notifier = Notifier(self.hby)
mux = grouping.Multiplexor(self.hby, notifier=notifier)
Expand Down
Loading