diff --git a/core/types/transaction.go b/core/types/transaction.go index 642fea8e72..dec13f0490 100644 --- a/core/types/transaction.go +++ b/core/types/transaction.go @@ -409,9 +409,7 @@ func (tx *Transaction) ProtoEncodeTxSigningData() *ProtoTransaction { } else { protoTxSigningData.Data = tx.Data() } - if tx.To() == nil { - protoTxSigningData.To = []byte{} - } else { + if tx.To() != nil { protoTxSigningData.To = tx.To().Bytes() } protoTxSigningData.GasFeeCap = tx.GasFeeCap().Bytes()