mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 06:52:36 +01:00
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.
This commit is contained in:
parent
fa29245827
commit
fa5059b7df
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue