test: remove ToHex helper, use .serialize().hex() instead
This commit is contained in:
1 parent
2ce7b47958
commit
a79396fe5f
17 files changed
+128
-102
No files matched your search
@@ -19,7 +19,6 @@ from test_framework.messages import (
|
||||
CTxIn,
|
||||
CTxInWitness,
|
||||
CTxOut,
|
||||
ToHex,
|
||||
)
|
||||
from test_framework.script import (
|
||||
ANNEX_TAG,
|
||||
@@ -1306,7 +1305,7 @@ class TaprootTest(BitcoinTestFramework):
|
||||
# Add change
|
||||
fund_tx.vout.append(CTxOut(balance - 10000, random.choice(host_spks)))
|
||||
# Ask the wallet to sign
|
||||
ss = BytesIO(bytes.fromhex(node.signrawtransactionwithwallet(ToHex(fund_tx))["hex"]))
|
||||
ss = BytesIO(bytes.fromhex(node.signrawtransactionwithwallet(fund_tx.serialize().hex())["hex"]))
|
||||
fund_tx.deserialize(ss)
|
||||
# Construct UTXOData entries
|
||||
fund_tx.rehash()
|
||||
|
||||
Reference in new issue
Block a user