Skip to content

Commit

Permalink
Merge pull request #813 from gzliudan/fix_receipt_encode
Browse files Browse the repository at this point in the history
core/types: remove extra byte when EncodeRLP for Receipt
  • Loading branch information
gzliudan authored Jan 22, 2025
2 parents 4e18b25 + 5740ca1 commit f6d3f64
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion core/types/receipt.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ func (r *Receipt) EncodeRLP(w io.Writer) error {
buf := encodeBufferPool.Get().(*bytes.Buffer)
defer encodeBufferPool.Put(buf)
buf.Reset()
buf.WriteByte(r.Type)
if err := r.encodeTyped(data, buf); err != nil {
return err
}
Expand Down

0 comments on commit f6d3f64

Please sign in to comment.