Skip to content

Commit

Permalink
Merge pull request #141 from mattn/fix-typos
Browse files Browse the repository at this point in the history
fix typos
  • Loading branch information
rolznz authored Sep 22, 2023
2 parents cef8fb2 + 18dca88 commit abfa989
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ If the client creates the secret the client only needs to share the public key o
- `max_amount` (optional) maximum amount in sats that can be sent per renewal period
- `budget_renewal` (optional) reset the budget at the end of the given budget renewal. Can be `never` (default), `daily`, `weekly`, `monthly`, `yearly`
- `editable` (optional) set to `false` to disable form editing by the user
- `request_methods` (optional) url encoded, space seperated list of request types that you need permission for: `pay_invoice` (default), `get_balance` (see NIP47). For example: `..&request_methods=pay_invoice%20get_balance`
- `request_methods` (optional) url encoded, space separated list of request types that you need permission for: `pay_invoice` (default), `get_balance` (see NIP47). For example: `..&request_methods=pay_invoice%20get_balance`

Example:

Expand Down
2 changes: 1 addition & 1 deletion echo_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ func (svc *Service) AppsCreateHandler(c echo.Context) error {
if requestMethods == "" {
return fmt.Errorf("Won't create an app without request methods.")
}
//request methods should be space seperated list of known request kinds
//request methods should be space separated list of known request kinds
methodsToCreate := strings.Split(requestMethods, " ")
for _, m := range methodsToCreate {
//if we don't know this method, we return an error
Expand Down
2 changes: 1 addition & 1 deletion service.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ func (svc *Service) PublishNip47Info(ctx context.Context, relay *nostr.Relay) er
}
status := relay.Publish(ctx, *ev)
if status != nostr.PublishStatusSucceeded {
return fmt.Errorf("Nostr publish not succesful: %s", status)
return fmt.Errorf("Nostr publish not successful: %s", status)
}
return nil
}

0 comments on commit abfa989

Please sign in to comment.