From 18dca883374bb6614d85751729918a4b995d4a7b Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Fri, 22 Sep 2023 02:51:23 +0900 Subject: [PATCH] fix typos --- README.md | 2 +- echo_handlers.go | 2 +- service.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e557af48..20a66107 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/echo_handlers.go b/echo_handlers.go index 9f6bf540..f337e943 100644 --- a/echo_handlers.go +++ b/echo_handlers.go @@ -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 diff --git a/service.go b/service.go index 43432e0d..0a9c7a4d 100644 --- a/service.go +++ b/service.go @@ -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 }