From 736a4ccb2f61f0d90e594b79cd020a5281c8218e Mon Sep 17 00:00:00 2001 From: Mario Vega Date: Mon, 20 Nov 2023 16:26:37 +0000 Subject: [PATCH] core/types: tx unmarshal: remove redundant check --- core/types/transaction_marshalling.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/core/types/transaction_marshalling.go b/core/types/transaction_marshalling.go index e5d71a85d6..37b1490e45 100644 --- a/core/types/transaction_marshalling.go +++ b/core/types/transaction_marshalling.go @@ -294,9 +294,6 @@ func (tx *Transaction) UnmarshalJSON(input []byte) error { return errors.New("missing required field 'input' in transaction") } itx.Data = *dec.Input - if dec.V == nil { - return errors.New("missing required field 'v' in transaction") - } if dec.AccessList != nil { itx.AccessList = *dec.AccessList } @@ -361,9 +358,6 @@ func (tx *Transaction) UnmarshalJSON(input []byte) error { return errors.New("missing required field 'input' in transaction") } itx.Data = *dec.Input - if dec.V == nil { - return errors.New("missing required field 'v' in transaction") - } if dec.AccessList != nil { itx.AccessList = *dec.AccessList }