Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
i-norden committed Jun 16, 2021
1 parent c215865 commit 198130f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions core/types/receipt.go
Expand Up @@ -141,10 +141,8 @@ func (r *Receipt) MarshalBinary() ([]byte, error) {
return rlp.EncodeToBytes(r)
}
data := &receiptRLP{r.statusEncoding(), r.CumulativeGasUsed, r.Bloom, r.Logs}
buf := encodeBufferPool.Get().(*bytes.Buffer)
defer encodeBufferPool.Put(buf)
buf.Reset()
err := r.encodeTyped(data, buf)
var buf bytes.Buffer
err := r.encodeTyped(data, &buf)
return buf.Bytes(), err
}

Expand Down

0 comments on commit 198130f

Please sign in to comment.