test: Return dict in MiniWallet::send_to

This commit is contained in:
MarcoFalke committed 2023-05-12 15:26:50 +02:00
1 parent 9d85c03620
commit faf4315c88
8 files changed
+20 -16

No files matched your search

+1 -1
View File
@@ -195,7 +195,7 @@ class RpcCreateMultiSigTest(BitcoinTestFramework):
wmulti.unloadwallet()
spk = address_to_scriptpubkey(madd)
txid, _ = self.wallet.send_to(from_node=self.nodes[0], scriptPubKey=spk, amount=1300)
txid = self.wallet.send_to(from_node=self.nodes[0], scriptPubKey=spk, amount=1300)["txid"]
tx = node0.getrawtransaction(txid, True)
vout = [v["n"] for v in tx["vout"] if madd == v["scriptPubKey"]["address"]]
assert len(vout) == 1