From 775821f4e515fc99b0f38132f54f9f723d3dde90 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Fri, 1 Dec 2023 12:57:18 -0300 Subject: [PATCH] fix CLOSED->CLOSE marshaling on CloseEnvelope. --- envelopes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/envelopes.go b/envelopes.go index 9768131..41963df 100644 --- a/envelopes.go +++ b/envelopes.go @@ -257,7 +257,7 @@ func (v *CloseEnvelope) UnmarshalJSON(data []byte) error { func (v CloseEnvelope) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - w.RawString(`["CLOSED",`) + w.RawString(`["CLOSE",`) w.Raw(json.Marshal(string(v))) w.RawString(`]`) return w.BuildBytes()