Fix displayed sats
This commit is contained in:
parent
700df20260
commit
a5a6a1711a
|
@ -132,7 +132,7 @@ func (p *Phoenixd) GetInvoice(paymentHash string) (*lightning.Invoice, error) {
|
||||||
var response struct {
|
var response struct {
|
||||||
PaymentHash string `json:"paymentHash"`
|
PaymentHash string `json:"paymentHash"`
|
||||||
Preimage string `json:"preimage"`
|
Preimage string `json:"preimage"`
|
||||||
Msats int64 `json:"receivedSat"`
|
Sats int64 `json:"receivedSat"`
|
||||||
Description string `json:"description"`
|
Description string `json:"description"`
|
||||||
CreatedAt int64 `json:"createdAt"`
|
CreatedAt int64 `json:"createdAt"`
|
||||||
ConfirmedAt int64 `json:"completedAt"`
|
ConfirmedAt int64 `json:"completedAt"`
|
||||||
|
@ -150,7 +150,7 @@ func (p *Phoenixd) GetInvoice(paymentHash string) (*lightning.Invoice, error) {
|
||||||
return &lightning.Invoice{
|
return &lightning.Invoice{
|
||||||
PaymentHash: response.PaymentHash,
|
PaymentHash: response.PaymentHash,
|
||||||
Preimage: response.Preimage,
|
Preimage: response.Preimage,
|
||||||
Msats: response.Msats,
|
Msats: response.Sats * 1_000,
|
||||||
Description: response.Description,
|
Description: response.Description,
|
||||||
CreatedAt: createdAt,
|
CreatedAt: createdAt,
|
||||||
ConfirmedAt: confirmedAt,
|
ConfirmedAt: confirmedAt,
|
||||||
|
|
Loading…
Reference in New Issue