diff options
author | Kolby ML <31669092+KolbyML@users.noreply.github.com> | 2023-01-15 17:10:01 -0700 |
---|---|---|
committer | Kolby ML <31669092+KolbyML@users.noreply.github.com> | 2023-01-15 18:34:01 -0700 |
commit | 61360e0cf9a9be44cb744b0f9dbc661b41a7cce6 (patch) | |
tree | 42d41f6b7b23128a7e3b4e6ff317cd8668ee2796 | |
parent | 3dd2762cf8391932b207ce8dcd747ac3b2decadc (diff) |
test: Remove redundant function call
-rwxr-xr-x | test/functional/wallet_importdescriptors.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/functional/wallet_importdescriptors.py b/test/functional/wallet_importdescriptors.py index 9e813166c5..ca0209b61d 100755 --- a/test/functional/wallet_importdescriptors.py +++ b/test/functional/wallet_importdescriptors.py @@ -15,7 +15,6 @@ variants. - `test_address()` is called to call getaddressinfo for an address on node1 and test the values returned.""" -from test_framework.address import key_to_p2pkh from test_framework.blocktools import COINBASE_MATURITY from test_framework.test_framework import BitcoinTestFramework from test_framework.descriptors import descsum_create @@ -120,12 +119,11 @@ class ImportDescriptorsTest(BitcoinTestFramework): self.log.info("Internal addresses should be detected as such") key = get_generate_key() - addr = key_to_p2pkh(key.pubkey) self.test_importdesc({"desc": descsum_create("pkh(" + key.pubkey + ")"), "timestamp": "now", "internal": True}, success=True) - info = w1.getaddressinfo(addr) + info = w1.getaddressinfo(key.p2pkh_addr) assert_equal(info["ismine"], True) assert_equal(info["ischange"], True) |