Skip to content

Commit

Permalink
Fix multisig address generation in multisig.py example (#8668)
Browse files Browse the repository at this point in the history
AccountAddress class is missing `from_multisig_schema` function, use `from_multi_ed25519` instead.

```
multisig_address = AccountAddress.from_multisig_schema(
        [alice.public_key(), bob.public_key(), chad.public_key()], threshold
    )
```
  • Loading branch information
kPatch authored Jul 2, 2023
1 parent c2ea3c2 commit 6283e8a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ecosystem/python/sdk/examples/multisig.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ def wait():
[alice.public_key(), bob.public_key(), chad.public_key()], threshold
)

multisig_address = AccountAddress.from_multisig_schema(
[alice.public_key(), bob.public_key(), chad.public_key()], threshold
)
multisig_address = AccountAddress.from_multi_ed25519(multisig_public_key)

print("\n=== 2-of-3 Multisig account ===")
print(f"Account public key: {multisig_public_key}")
Expand Down

0 comments on commit 6283e8a

Please sign in to comment.