kzg: avoid copying blobs for marshaling

This commit is contained in:
Ömer Faruk IRMAK 2025-06-03 16:23:24 +03:00
parent 91900e79ea
commit 2fd202404a

View file

@ -45,7 +45,7 @@ func (b *Blob) UnmarshalJSON(input []byte) error {
}
// MarshalText returns the hex representation of b.
func (b Blob) MarshalText() ([]byte, error) {
func (b *Blob) MarshalText() ([]byte, error) {
return hexutil.Bytes(b[:]).MarshalText()
}