Rename amountSat->balanceSat in balance response
This commit is contained in:
parent
c02a09744a
commit
026b8138ef
@ -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()
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user