From 3219d93afe8f6ef33a576bc37713a35e875f6409 Mon Sep 17 00:00:00 2001 From: im-adithya Date: Thu, 4 Jan 2024 18:49:26 +0530 Subject: [PATCH] fix: return empty values --- strike.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/strike.go b/strike.go index ddf880cf..faa3f1fe 100644 --- a/strike.go +++ b/strike.go @@ -100,12 +100,12 @@ func (*StrikeOAuthService) SendKeysend(ctx context.Context, senderPubkey string, func (svc *StrikeOAuthService) ListTransactions(ctx context.Context, senderPubkey string, from, until, limit, offset uint64, unpaid bool, invoiceType string) (transactions []Nip47Transaction, err error) { // return empty array for now - return transactions, nil + return []Nip47Transaction{}, nil } func (svc *StrikeOAuthService) LookupInvoice(ctx context.Context, senderPubkey string, paymentHash string) (transaction *Nip47Transaction, err error) { // return empty transaction for now - return transaction, nil + return &Nip47Transaction{}, nil } func (svc *StrikeOAuthService) MakeInvoice(ctx context.Context, senderPubkey string, amount int64, description string, descriptionHash string, expiry int64) (transaction *Nip47Transaction, err error) {