Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit c181e31

Browse files
committed
Set private to true instead of false
1 parent 834c752 commit c181e31

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/action/invoice.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class InvoiceAction {
6464
const response = await this._grpc.sendCommand('addInvoice', {
6565
value: toSatoshis(invoice.amount, settings),
6666
memo: invoice.note,
67-
private: false,
67+
private: true,
6868
});
6969
invoice.encoded = response.payment_request;
7070
invoice.uri = `${PREFIX_URI}${invoice.encoded}`;

test/unit/action/invoice.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ describe('Action Invoice Unit Tests', () => {
6060
.withArgs('addInvoice', {
6161
value: 1000,
6262
memo: 'foo',
63-
private: false,
63+
private: true,
6464
})
6565
.resolves({
6666
payment_request: 'some-request',

0 commit comments

Comments
 (0)