@@ -346,18 +346,15 @@ def run_test(self):
346346 for i in range (3 ):
347347 addrs .append (self .nodes [0 ].validateaddress (self .nodes [0 ].getnewaddress ())["pubkey" ])
348348
349-
350- multisig_addr = self .nodes [0 ].createmultisig (2 ,addrs )
349+ multisig_addr = self .nodes [0 ].addmultisigaddress (2 ,addrs )
351350 blinded_addr = self .nodes [0 ].getnewaddress ()
352351 blinding_pubkey = self .nodes [0 ].validateaddress (blinded_addr )["confidential_key" ]
353352 blinding_privkey = self .nodes [0 ].dumpblindingkey (blinded_addr )
354- blinded_multisig = self .nodes [0 ].createblindedaddress (multisig_addr ["address" ], blinding_pubkey )
355- # Import address so we consider the reissuance tokens ours
356- self .nodes [0 ].importaddress (blinded_multisig )
353+ blinded_multisig = self .nodes [0 ].createblindedaddress (multisig_addr , blinding_pubkey )
357354 # Import blinding key to be able to decrypt values sent to it
358355 self .nodes [0 ].importblindingkey (blinded_multisig , blinding_privkey )
359356
360- self .nodes [0 ].sendtoaddress (blinded_multisig , self .nodes [0 ].getbalance ()[issued_asset ["asset " ]], "" , "" , False , issued_asset ["asset " ])
357+ self .nodes [0 ].sendtoaddress (blinded_multisig , self .nodes [0 ].getbalance ()[issued_asset ["token " ]], "" , "" , False , issued_asset ["token " ])
361358 self .nodes [0 ].generate (1 )
362359
363360 # Get that multisig output
@@ -366,6 +363,7 @@ def run_test(self):
366363 for utxo in self .nodes [0 ].listunspent ():
367364 if utxo ["asset" ] == issued_asset ["token" ]:
368365 utxo_info = utxo
366+ assert_equal (utxo_info ["address" ], multisig_addr )
369367 break
370368 assert (utxo_info is not None )
371369
0 commit comments