scripted-diff: test: rename FromHex to from_hex

-BEGIN VERIFY SCRIPT-
sed -i 's/\<FromHex\>/from_hex/g' $(git grep -l FromHex)
-END VERIFY SCRIPT-

Co-authored-by: MarcoFalke <falke.marco@gmail.com>
This commit is contained in:
Sebastian Falbesoner
2021-06-20 14:01:36 +02:00
parent a79396fe5f
commit 1914054208
7 changed files with 18 additions and 18 deletions

View File

@@ -191,14 +191,14 @@ def ser_string_vector(l):
# Deserialize from a hex string representation (eg from RPC)
def FromHex(obj, hex_string):
def from_hex(obj, hex_string):
obj.deserialize(BytesIO(hex_str_to_bytes(hex_string)))
return obj
def tx_from_hex(hex_string):
"""Deserialize from hex string to a transaction object"""
return FromHex(CTransaction(), hex_string)
return from_hex(CTransaction(), hex_string)
# Objects that map to bitcoind objects, which can be serialized/deserialized