From 6283e8a02e7ba468010a9348941c338d2cc4a154 Mon Sep 17 00:00:00 2001 From: Irvin | OpenDive Date: Sun, 2 Jul 2023 07:24:15 +0200 Subject: [PATCH] Fix multisig address generation in multisig.py example (#8668) 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 ) ``` --- ecosystem/python/sdk/examples/multisig.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ecosystem/python/sdk/examples/multisig.py b/ecosystem/python/sdk/examples/multisig.py index 80d48bd2d832b..78447a4ecc561 100644 --- a/ecosystem/python/sdk/examples/multisig.py +++ b/ecosystem/python/sdk/examples/multisig.py @@ -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}")