mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-16 14:41:21 +00:00
cmn: fix HexBytes.MarshalJSON
This commit is contained in:
@ -26,7 +26,7 @@ func (bz HexBytes) MarshalJSON() ([]byte, error) {
|
||||
jbz := make([]byte, len(s)+2)
|
||||
jbz[0] = '"'
|
||||
copy(jbz[1:], []byte(s))
|
||||
jbz[1] = '"'
|
||||
jbz[len(jbz)-1] = '"'
|
||||
return jbz, nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user