Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incorrect usage type #75

Merged
merged 1 commit into from
Sep 13, 2023
Merged

Fix incorrect usage type #75

merged 1 commit into from
Sep 13, 2023

Conversation

IroncladDev
Copy link
Contributor

The example to create an invoice from a payment request and a preimage in README.md had an incorrect argument paymentRequest when the correct property is pr

In src/types.ts:53, the InvoiceArgs type takes pr, verify, and preimage with no reference to paymentRequest.

export type InvoiceArgs = {
  pr: string;
  verify?: string;
  preimage?: string;
};

The example to create an invoice from a payment request and a preimage in README.md had an incorrect argument `paymentRequest` when the correct property is `pr`

In [`src/types.ts:53`](https://github.com/getAlby/js-lightning-tools/blob/master/src/types.ts#L53), the InvoiceArgs type takes `pr`, `verify`, and `preimage` with no reference to `paymentRequest`.

```ts
export type InvoiceArgs = {
  pr: string;
  verify?: string;
  preimage?: string;
};
```
@rolznz rolznz merged commit f415b91 into getAlby:master Sep 13, 2023
1 check passed
@rolznz
Copy link
Contributor

rolznz commented Sep 13, 2023

Thanks @IroncladDev !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants