feat: use display trait for string representation of address type

This commit is contained in:
thunderbiscuit
2024-06-04 13:25:41 -04:00
parent 53afd9c238
commit efef60082b
19 changed files with 33 additions and 31 deletions

View File

@@ -36,7 +36,7 @@ class LiveTxBuilderTest {
println("Balance: ${wallet.getBalance().total.toSat()}")
assert(wallet.getBalance().total.toSat() > 0uL) {
"Wallet balance must be greater than 0! Please send funds to ${wallet.revealNextAddress(KeychainKind.EXTERNAL).address.asString()} and try again."
"Wallet balance must be greater than 0! Please send funds to ${wallet.revealNextAddress(KeychainKind.EXTERNAL).address} and try again."
}
val recipient: Address = Address("tb1qrnfslnrve9uncz9pzpvf83k3ukz22ljgees989", Network.SIGNET)

View File

@@ -53,7 +53,7 @@ class OfflineWalletTest {
assertEquals(
expected = "tb1qzg4mckdh50nwdm9hkzq06528rsu73hjxxzem3e",
actual = addressInfo.address.asString()
actual = addressInfo.address.toString()
)
}