From c489233bbda6a07123970b828c4e28ab77763ddf Mon Sep 17 00:00:00 2001 From: freehere107 Date: Mon, 19 Feb 2024 16:20:40 +0800 Subject: [PATCH] Fix option encode --- types/Option.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/Option.go b/types/Option.go index 2ff3310..028d690 100644 --- a/types/Option.go +++ b/types/Option.go @@ -34,7 +34,7 @@ func (o *Option) Encode(value interface{}) string { } return "02" } - return EncodeWithOpt(o.SubType, value, &ScaleDecoderOption{Spec: o.Spec, Metadata: o.Metadata}) + return "01" + EncodeWithOpt(o.SubType, value, &ScaleDecoderOption{Spec: o.Spec, Metadata: o.Metadata}) } func (o *Option) TypeStructString() string {