From b1fac87d7f7a1ecd291cd3a5bed5034cbcaeaaca Mon Sep 17 00:00:00 2001 From: 4tochka Date: Wed, 20 Jun 2018 15:05:57 +0400 Subject: [PATCH] Documentation --- tests/test/address_functions.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/test/address_functions.py b/tests/test/address_functions.py index 254a2a9..08827bb 100644 --- a/tests/test/address_functions.py +++ b/tests/test/address_functions.py @@ -244,7 +244,7 @@ class AddressFunctionsTests(unittest.TestCase): h = ''.join(s) s = unhexlify(h) k = tools.parse_script(s) - sh = tools.script_to_hash(h, witness = False) + sh = tools.script_to_hash(h, 0, 0) address = tools.hash_to_address(sh,script_hash = True, witness_version = None, testnet = False) self.assertEqual(address, "3D2oetdNuZUqQHPJmcMDDHYoqkyNVsFk9r") @@ -270,7 +270,7 @@ class AddressFunctionsTests(unittest.TestCase): h = ''.join(s) s = unhexlify(h) k = tools.parse_script(s) - sh = tools.script_to_hash(h, witness = False) + sh = tools.script_to_hash(h, 0,0) self.assertEqual(k["type"],"NON_STANDARD") self.assertEqual(k["nType"],7) self.assertEqual(k["reqSigs"],20) @@ -318,7 +318,7 @@ class AddressFunctionsTests(unittest.TestCase): h = ''.join(s) s = unhexlify(h) k = tools.parse_script(s) - sh = tools.script_to_hash(h, witness = False) + sh = tools.script_to_hash(h, 0, 0) self.assertEqual(k["type"],"NON_STANDARD") self.assertEqual(k["nType"],7) self.assertEqual(k["reqSigs"],1) @@ -342,9 +342,9 @@ class AddressFunctionsTests(unittest.TestCase): h = ''.join(s) s = unhexlify(h) k = tools.parse_script(s) - self.assertEqual(k["type"],"NON_STANDARD") - self.assertEqual(k["nType"],7) - self.assertEqual(k["reqSigs"],6) + self.assertEqual(k["type"], "NON_STANDARD") + self.assertEqual(k["nType"], 7) + self.assertEqual(k["reqSigs"], 6) s = [HEX_OPCODE['OP_1'], HEX_OPCODE['OP_6'],