Fix displayed sats

This commit is contained in:
ekzyis 2024-12-27 19:40:09 +01:00
parent 700df20260
commit a5a6a1711a
1 changed files with 2 additions and 2 deletions

View File

@ -132,7 +132,7 @@ func (p *Phoenixd) GetInvoice(paymentHash string) (*lightning.Invoice, error) {
var response struct {
PaymentHash string `json:"paymentHash"`
Preimage string `json:"preimage"`
Msats int64 `json:"receivedSat"`
Sats int64 `json:"receivedSat"`
Description string `json:"description"`
CreatedAt int64 `json:"createdAt"`
ConfirmedAt int64 `json:"completedAt"`
@ -150,7 +150,7 @@ func (p *Phoenixd) GetInvoice(paymentHash string) (*lightning.Invoice, error) {
return &lightning.Invoice{
PaymentHash: response.PaymentHash,
Preimage: response.Preimage,
Msats: response.Msats,
Msats: response.Sats * 1_000,
Description: response.Description,
CreatedAt: createdAt,
ConfirmedAt: confirmedAt,