Skip to content

Commit

Permalink
fix: return empty values
Browse files Browse the repository at this point in the history
  • Loading branch information
im-adithya committed Jan 4, 2024
1 parent ae9acaa commit 3219d93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions strike.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3219d93

Please sign in to comment.