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: remove duplicate payjoin code in getAddressWithAmountAndLabel #375

Conversation

kumulynja
Copy link
Contributor

This PR removes some code that is executed when payjoinReceiver != null that was present two times in the same function, one time before checking isLiquid and one time after checking isLiquid. The code before the Liquid check was causing the issue and so I removed it, since if not Liquid, it will still be executed after this check.

A more elaborate fix would also make sure the payjoinReceiver gets reset when isLiquid, but I think a bigger refactoring can eliminate this problem completely, so for now just removing the duplicate code before the check works as a quick fix.

@kumulynja
Copy link
Contributor Author

This should fix #371

Copy link
Collaborator

@ethicnology ethicnology left a comment

Choose a reason for hiding this comment

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

Remove duplicate starting at line 70

@ethicnology ethicnology merged commit b240c2a into SatoshiPortal:main Dec 23, 2024
1 of 3 checks passed
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