diff --git a/crypto/kzg4844/kzg4844.go b/crypto/kzg4844/kzg4844.go index 0a2478cea0..fd2e2991fe 100644 --- a/crypto/kzg4844/kzg4844.go +++ b/crypto/kzg4844/kzg4844.go @@ -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() }