File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -75,8 +75,6 @@ type Receipt struct {
75
75
BlockHash common.Hash `json:"blockHash,omitempty"`
76
76
BlockNumber * big.Int `json:"blockNumber,omitempty"`
77
77
TransactionIndex uint `json:"transactionIndex"`
78
-
79
- Subtype uint8 `json:"subtype,omitempty"`
80
78
}
81
79
82
80
type receiptMarshaling struct {
@@ -157,9 +155,6 @@ func (r *Receipt) EncodeRLP(w io.Writer) error {
157
155
// encodeTyped writes the canonical encoding of a typed receipt to w.
158
156
func (r * Receipt ) encodeTyped (data * receiptRLP , w * bytes.Buffer ) error {
159
157
w .WriteByte (r .Type )
160
- if r .Type == ArbitrumSubtypedTxType {
161
- w .WriteByte (r .Subtype )
162
- }
163
158
return rlp .Encode (w , data )
164
159
}
165
160
@@ -230,19 +225,6 @@ func (r *Receipt) decodeTyped(b []byte) error {
230
225
}
231
226
r .Type = b [0 ]
232
227
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
-
246
228
default :
247
229
return ErrTxTypeNotSupported
248
230
}
You can’t perform that action at this time.
0 commit comments