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

Update decodepay.go #5

Merged
merged 1 commit into from
Oct 3, 2023
Merged

Update decodepay.go #5

merged 1 commit into from
Oct 3, 2023

Conversation

adam2k
Copy link
Contributor

@adam2k adam2k commented Oct 2, 2023

This prevents a panic when attempting chainPrefix := bolt11[2:firstNumber] and receiving an invalid slice when firstNumber < 2.

This prevents a panic when attempting `chainPrefix := bolt11[2:firstNumber]` and receiving an invalid slice when `firstNumber < 2`.
@fiatjaf fiatjaf merged commit 4583103 into nbd-wtf:master Oct 3, 2023
@adam2k adam2k deleted the patch-1 branch October 3, 2023 17:27
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