mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
kzg: avoid copying blobs for marshaling
This commit is contained in:
parent
91900e79ea
commit
2fd202404a
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue