mirror of
https://github.com/muun/recovery.git
synced 2025-11-11 14:30:19 -05:00
Release v0.2.0
This commit is contained in:
4
vendor/github.com/muun/libwallet/invoice.go
generated
vendored
4
vendor/github.com/muun/libwallet/invoice.go
generated
vendored
@@ -15,7 +15,7 @@ type Invoice struct {
|
||||
Network *Network
|
||||
MilliSat string
|
||||
Destination []byte
|
||||
PaymentHash [32]byte
|
||||
PaymentHash []byte
|
||||
Expiry int64
|
||||
Description string
|
||||
}
|
||||
@@ -60,7 +60,7 @@ func ParseInvoice(invoice string, network *Network) (*Invoice, error) {
|
||||
Network: network,
|
||||
MilliSat: milliSats,
|
||||
Destination: parsedInvoice.Destination.SerializeCompressed(),
|
||||
PaymentHash: *parsedInvoice.PaymentHash,
|
||||
PaymentHash: parsedInvoice.PaymentHash[:],
|
||||
Expiry: parsedInvoice.Timestamp.Unix() + int64(parsedInvoice.Expiry().Seconds()),
|
||||
Description: description,
|
||||
}, nil
|
||||
|
||||
Reference in New Issue
Block a user