commit d43c46aaf41f6816a6b83520cdcc680c7d231987
parent c007cbd4f2e460c84cc1b5e44a537e67c331cd5f
Author: William Casarin <jb55@jb55.com>
Date: Wed, 31 Jul 2024 13:25:18 -0700
nostr: fix parsing of OK events
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/enostr/src/relay/message.rs b/enostr/src/relay/message.rs
@@ -107,7 +107,7 @@ impl<'a> RelayMessage<'a> {
// OK (NIP-20)
// Relay response format: ["OK",<event_id>, <true|false>, <message>]
- if &msg[0..=4] == "[\"OK\"," {
+ if &msg[0..=5] == "[\"OK\"," {
// TODO: fix this
let event_id = &msg[7..71];
let booly = &msg[73..77];