Skip to content

Commit d59a026

Browse files
committed
drop subtype from receipt
1 parent 8952bb9 commit d59a026

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

core/types/receipt.go

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ type Receipt struct {
7575
BlockHash common.Hash `json:"blockHash,omitempty"`
7676
BlockNumber *big.Int `json:"blockNumber,omitempty"`
7777
TransactionIndex uint `json:"transactionIndex"`
78-
79-
Subtype uint8 `json:"subtype,omitempty"`
8078
}
8179

8280
type receiptMarshaling struct {
@@ -157,9 +155,6 @@ func (r *Receipt) EncodeRLP(w io.Writer) error {
157155
// encodeTyped writes the canonical encoding of a typed receipt to w.
158156
func (r *Receipt) encodeTyped(data *receiptRLP, w *bytes.Buffer) error {
159157
w.WriteByte(r.Type)
160-
if r.Type == ArbitrumSubtypedTxType {
161-
w.WriteByte(r.Subtype)
162-
}
163158
return rlp.Encode(w, data)
164159
}
165160

@@ -230,19 +225,6 @@ func (r *Receipt) decodeTyped(b []byte) error {
230225
}
231226
r.Type = b[0]
232227
return r.setFromRLP(data)
233-
case ArbitrumSubtypedTxType:
234-
if len(b) <= 2 {
235-
return errShortTypedReceipt
236-
}
237-
var data receiptRLP
238-
err := rlp.DecodeBytes(b[2:], &data)
239-
if err != nil {
240-
return err
241-
}
242-
r.Type = b[0]
243-
r.Subtype = b[1]
244-
return r.setFromRLP(data)
245-
246228
default:
247229
return ErrTxTypeNotSupported
248230
}

0 commit comments

Comments
 (0)