We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea9cf1b commit e03b5adCopy full SHA for e03b5ad
core/types/tx_blob_with_blob.go
@@ -35,12 +35,12 @@ type innerType struct {
35
}
36
37
func (tx *BlobTxWithBlobs) DecodeRLP(s *rlp.Stream) error {
38
+ tx.Transaction = new(Transaction)
39
kind, _, err := s.Kind()
40
switch {
41
case err != nil:
42
return err
43
case kind == rlp.List:
- tx.Transaction = new(Transaction)
44
return tx.Transaction.DecodeRLP(s)
45
default:
46
b, err := s.Bytes()
@@ -79,6 +79,7 @@ func (tx *BlobTxWithBlobs) EncodeRLP(w io.Writer) error {
79
80
81
func (tx *BlobTxWithBlobs) UnmarshalBinary(b []byte) error {
82
83
if len(b) < 1 {
84
return errShortTypedTx
85
0 commit comments