From c378a6a92d8a0145ccd37ecd70308699f48a66c0 Mon Sep 17 00:00:00 2001 From: Jonathan Downing Date: Thu, 16 May 2024 16:04:04 -0500 Subject: [PATCH] Bugfix: don't encode empty array for nil to --- core/types/transaction.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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()