Skip to content

Commit

Permalink
Fix option encode
Browse files Browse the repository at this point in the history
  • Loading branch information
freehere107 committed Feb 19, 2024
1 parent 518bdf9 commit c489233
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/Option.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c489233

Please sign in to comment.