Skip to content

Invoices with integer descriptions are rejected #1312

@shesek

Description

@shesek

Similarly to #1291, descriptions that are JSON encoded as numbers are rejected with the error message description '...' not a string. If the number is encoded as a quoted string, the invoice is accepted.

There are two possible related fixes here:

  1. Change lightning-cli invoice to always escape the description as a string. Other client libraries/utilities will have to make sure to do that as well.

  2. Always cast the description to a string when processing it.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions