mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-19 22:44:24 +00:00
cmn: fix HexBytes.MarshalJSON
This commit is contained in:
+1
-1
@@ -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