Rename amountSat->balanceSat in balance response

This commit is contained in:
Dominique Padiou 2024-03-19 18:05:14 +01:00
parent c02a09744a
commit 026b8138ef
No known key found for this signature in database
GPG Key ID: 574C8C6A1673E987
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ sealed class ApiType {
)
@Serializable
data class Balance(@SerialName("amountSat") val amount: Satoshi, @SerialName("feeCreditSat") val feeCredit: Satoshi) : ApiType()
data class Balance(@SerialName("balanceSat") val amount: Satoshi, @SerialName("feeCreditSat") val feeCredit: Satoshi) : ApiType()
@Serializable
data class GeneratedInvoice(@SerialName("amountSat") val amount: Satoshi?, val paymentHash: ByteVector32, val serialized: String) : ApiType()

View File

@ -88,7 +88,7 @@ abstract class PhoenixCliCommand(val name: String, val help: String, printHelpOn
val res = httpRequest()
echo(res.bodyAsText())
} catch (e: Exception) {
echo("[${this@PhoenixCliCommand.name}] error: ${e.message}")
echo("[${this@PhoenixCliCommand.name}] error: ${e.message}", err = true)
}
}
}