From d675721276d126012faa264491d632689703ad3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96mer=20Faruk=20Irmak?= Date: Wed, 4 Jun 2025 21:52:27 +0300 Subject: [PATCH] crypto/kzg4844: avoid copying blobs for marshaling (#31911) LLVM is not able to handle large arrays on stack --- crypto/kzg4844/kzg4844.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() }