From fa5059b7dfba6d95c14a12f21d02b63fe29b3f2b Mon Sep 17 00:00:00 2001 From: MacroFake Date: Fri, 1 Jul 2022 12:28:33 +0200 Subject: test: Make the scriptPubKey of MiniWallet created txs mutable This makes individual bytes of the scriptPubKey mutable, previously it could only be re-assigned as a whole. --- test/functional/test_framework/wallet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/functional/test_framework/wallet.py b/test/functional/test_framework/wallet.py index 7ab54618c8..2164627781 100644 --- a/test/functional/test_framework/wallet.py +++ b/test/functional/test_framework/wallet.py @@ -294,7 +294,7 @@ class MiniWallet: tx = CTransaction() tx.vin = [CTxIn(COutPoint(int(utxo_to_spend['txid'], 16), utxo_to_spend['vout']), nSequence=sequence)] - tx.vout = [CTxOut(int(COIN * send_value), self._scriptPubKey)] + tx.vout = [CTxOut(int(COIN * send_value), bytearray(self._scriptPubKey))] tx.nLockTime = locktime if self._mode == MiniWalletMode.RAW_P2PK: self.sign_tx(tx) -- cgit v1.2.3