|
|
@ -11,7 +11,6 @@ import (
|
|
|
|
"github.com/lightninglabs/loop/lndclient"
|
|
|
|
"github.com/lightninglabs/loop/lndclient"
|
|
|
|
"github.com/lightningnetwork/lnd/lnrpc/invoicesrpc"
|
|
|
|
"github.com/lightningnetwork/lnd/lnrpc/invoicesrpc"
|
|
|
|
"github.com/lightningnetwork/lnd/lntypes"
|
|
|
|
"github.com/lightningnetwork/lnd/lntypes"
|
|
|
|
"github.com/lightningnetwork/lnd/lnwire"
|
|
|
|
|
|
|
|
"github.com/lightningnetwork/lnd/zpay32"
|
|
|
|
"github.com/lightningnetwork/lnd/zpay32"
|
|
|
|
"golang.org/x/net/context"
|
|
|
|
"golang.org/x/net/context"
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -88,7 +87,7 @@ func (h *mockLightningClient) AddInvoice(ctx context.Context,
|
|
|
|
h.lnd.ChainParams, hash, creationDate,
|
|
|
|
h.lnd.ChainParams, hash, creationDate,
|
|
|
|
zpay32.Description(in.Memo),
|
|
|
|
zpay32.Description(in.Memo),
|
|
|
|
zpay32.CLTVExpiry(in.CltvExpiry),
|
|
|
|
zpay32.CLTVExpiry(in.CltvExpiry),
|
|
|
|
zpay32.Amount(lnwire.MilliSatoshi(in.Value)),
|
|
|
|
zpay32.Amount(in.Value),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
return lntypes.Hash{}, "", err
|
|
|
|
return lntypes.Hash{}, "", err
|
|
|
|