Skip to content

Commit

Permalink
Merge pull request #247 from benthecarman/patch-1
Browse files Browse the repository at this point in the history
Fix info event to be space separated
  • Loading branch information
rolznz committed Feb 19, 2024
2 parents 9431e95 + 79b3b7b commit 7de60c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion models.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const (
NIP_47_ERROR_EXPIRED = "EXPIRED"
NIP_47_ERROR_RESTRICTED = "RESTRICTED"
NIP_47_OTHER = "OTHER"
NIP_47_CAPABILITIES = "pay_invoice,pay_keysend,get_balance,get_info,make_invoice,lookup_invoice,list_transactions"
NIP_47_CAPABILITIES = "pay_invoice pay_keysend get_balance get_info make_invoice lookup_invoice list_transactions"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion service.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ func (svc *Service) GetMethods(app *App) []string {
})
if findPermissionsResult.RowsAffected == 0 {
// No permissions created for this app. It can do anything
return strings.Split(NIP_47_CAPABILITIES, ",")
return strings.Split(NIP_47_CAPABILITIES, " ")
}
requestMethods := make([]string, 0, len(appPermissions))
for _, appPermission := range appPermissions {
Expand Down

0 comments on commit 7de60c2

Please sign in to comment.