Update tests for new AddressInfo type

This commit is contained in:
thunderbiscuit
2023-03-28 14:26:56 -04:00
parent e7e1a6057e
commit f26031db80
5 changed files with 4 additions and 9 deletions

View File

@@ -27,7 +27,7 @@ class TestSimpleBip84Wallet(unittest.TestCase):
database_config=db_config
)
address_info = wallet.get_address(bdk.AddressIndex.LAST_UNUSED())
address = address_info.address
address = address_info.address.as_string()
# print(f"New address is {address}")
assert address == "tb1qzg4mckdh50nwdm9hkzq06528rsu73hjxxzem3e", f"Wrong address {address}, should be tb1qzg4mckdh50nwdm9hkzq06528rsu73hjxxzem3e"