Skip to content

Commit

Permalink
Fix info event to be space separated
Browse files Browse the repository at this point in the history
  • Loading branch information
benthecarman committed Feb 18, 2024
1 parent 9431e95 commit 79b3b7b
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 79b3b7b

Please sign in to comment.