crypto/kzg4844: avoid copying blobs for marshaling (#31911)
Some checks are pending
/ Linux Build (push) Waiting to run
/ Linux Build (arm) (push) Waiting to run
/ Docker Image (push) Waiting to run

LLVM is not able to handle large arrays on stack
This commit is contained in:
Ömer Faruk Irmak 2025-06-04 21:52:27 +03:00 committed by GitHub
parent 5e98c97abb
commit d675721276
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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()
}