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

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jankoegel
Copy link

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).
@@ -22,7 +22,7 @@ def to_bech32
human = to_human_string
data = to_data_array
data += Invoice.buffer_to_word(signature.htb)
Bech32.encode(human, data)
Bech32.encode(human, data, Bech32::Encoding::BECH32M)
Copy link
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