diff options
author | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2021-06-20 14:01:36 +0200 |
---|---|---|
committer | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2021-06-21 14:33:59 +0200 |
commit | 191405420815d49ab50184513717a303fc2744d6 (patch) | |
tree | 64c9af3f017abdf55e4b7f6da8e3f164a4c14bc7 /test/functional/test_framework/messages.py | |
parent | a79396fe5f8f81c78cf84117a87074c6ff6c9d95 (diff) |
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>
Diffstat (limited to 'test/functional/test_framework/messages.py')
-rwxr-xr-x | test/functional/test_framework/messages.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/test_framework/messages.py b/test/functional/test_framework/messages.py index f43c1eb10f..a0e1a6bc12 100755 --- a/test/functional/test_framework/messages.py +++ b/test/functional/test_framework/messages.py @@ -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 |