From 5ead1da7f71e20085188e7a6416ecf2bc692520f Mon Sep 17 00:00:00 2001 From: Erik van den Brink Date: Mon, 16 Sep 2024 11:14:20 +0200 Subject: [PATCH] tests: fix StackItem.as_address test --- tests/api/test_noderpc.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/api/test_noderpc.py b/tests/api/test_noderpc.py index d97173b..ec5ec99 100644 --- a/tests/api/test_noderpc.py +++ b/tests/api/test_noderpc.py @@ -794,10 +794,8 @@ def test_as_address(self): script_hash = utils.address_to_script_hash(addr) si = api.StackItem(api.StackItemType.BYTE_STRING, script_hash.to_array()) - value = si.as_uint160() - - self.assertIsInstance(value, types.UInt160) - self.assertEqual(script_hash, value) + value = si.as_address() + self.assertEqual(addr, value) with self.assertRaises(ValueError) as context: self.si_int.as_address()