Skip to content

Commit d675721

Browse files
authored
crypto/kzg4844: avoid copying blobs for marshaling (#31911)
LLVM is not able to handle large arrays on stack
1 parent 5e98c97 commit d675721

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crypto/kzg4844/kzg4844.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func (b *Blob) UnmarshalJSON(input []byte) error {
4545
}
4646

4747
// MarshalText returns the hex representation of b.
48-
func (b Blob) MarshalText() ([]byte, error) {
48+
func (b *Blob) MarshalText() ([]byte, error) {
4949
return hexutil.Bytes(b[:]).MarshalText()
5050
}
5151

0 commit comments

Comments
 (0)