Skip to content

Invoice::Message#to_bech32: fix call to Bech32.encode#2

Open
jankoegel wants to merge 1 commit into
Yamaguchi:masterfrom
jankoegel:jankoegel-patch-1
Open

Invoice::Message#to_bech32: fix call to Bech32.encode#2
jankoegel wants to merge 1 commit into
Yamaguchi:masterfrom
jankoegel:jankoegel-patch-1

Conversation

@jankoegel

Copy link
Copy Markdown

Fix call to the bech32 gem's encode method whose signature has changed (requires 3 arguments now):

https://github.com/azuchi/bech32rb/blob/master/lib/bech32.rb#L28

Fix call to the `bech32` gem's encode method whose signature has changed (requires 3 arguments now).
Comment thread lib/lightning/invoice.rb
data = to_data_array
data += Invoice.buffer_to_word(signature.htb)
Bech32.encode(human, data)
Bech32.encode(human, data, Bech32::Encoding::BECH32M)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hope Bech32::Encoding::BECH32M is the right encoding, or do we need Bech32::Encoding::BECH32 here instead?

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.

1 participant