fix: x/tx/signing/aminojson: revert json.NewEncoder that added newlines (#16701)
This commit is contained in:
parent
aca89be7b2
commit
417f455ea4
@ -305,7 +305,12 @@ func (enc Encoder) marshalMessage(msg protoreflect.Message, writer io.Writer) er
|
||||
}
|
||||
|
||||
func jsonMarshal(w io.Writer, v interface{}) error {
|
||||
return json.NewEncoder(w).Encode(v)
|
||||
blob, err := json.Marshal(v)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
_, err = w.Write(blob)
|
||||
return err
|
||||
}
|
||||
|
||||
func (enc Encoder) marshalList(list protoreflect.List, writer io.Writer) error {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user