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
@@ -196,11 +196,6 @@ def FromHex(obj, hex_string):
|
||||
return obj
|
||||
|
||||
|
||||
# Convert a binary-serializable object to hex (eg for submission via RPC)
|
||||
def ToHex(obj):
|
||||
return obj.serialize().hex()
|
||||
|
||||
|
||||
def tx_from_hex(hex_string):
|
||||
"""Deserialize from hex string to a transaction object"""
|
||||
return FromHex(CTransaction(), hex_string)
|
||||
|
||||
Reference in new issue
Block a user