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

@@ -10,6 +10,6 @@ final class BitcoinDevKitTests: XCTestCase {
let databaseConfig = DatabaseConfig.memory
let wallet = try Wallet.init(descriptor: desc, changeDescriptor: nil, network: Network.regtest, databaseConfig: databaseConfig)
let addressInfo = try wallet.getAddress(addressIndex: AddressIndex.new)
XCTAssertEqual(addressInfo.address, "bcrt1qzg4mckdh50nwdm9hkzq06528rsu73hjxytqkxs")
XCTAssertEqual(addressInfo.address.asString(), "bcrt1qzg4mckdh50nwdm9hkzq06528rsu73hjxytqkxs")
}
}