-
Notifications
You must be signed in to change notification settings - Fork 60
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/proxy payment #745
Fix/proxy payment #745
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me if you could make that one part a util to make it more common that would be good
handlers/bounty.go
Outdated
if request.RouteHint != "" { | ||
bodyData = fmt.Sprintf(`{"amount": %d, "destination_key": "%s", "route_hint": "%s"}`, amount, request.ReceiverPubKey, request.RouteHint) | ||
} else { | ||
bodyData = fmt.Sprintf(`{"amount": %d, "destination_key": "%s"}`, amount, request.ReceiverPubKey) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like were doing this in two locations it might make more sense to make this a util than repeating code
handlers/invoiceCron.go
Outdated
var bodyData string | ||
if inv.Route_hint != "" { | ||
bodyData = fmt.Sprintf(`{"amount": %s, "destination_key": "%s", "route_hint": "%s"}`, inv.Amount, inv.User_pubkey, inv.Route_hint) | ||
} else { | ||
bodyData = fmt.Sprintf(`{"amount": %s, "destination_key": "%s"}`, inv.Amount, inv.User_pubkey) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like were doing this in two locations it might make more sense to make this a util than repeating code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have created a util function for it.
looks good to me merging |
Describe your changes
This PR removes the capitalization of organization names and adds a route hint for proxy users' keysend payments.
Issue ticket number and link
Closes #739
Closes #738
Type of change
Checklist before requesting a review