Skip to content

Commit

Permalink
Bugfix: don't encode empty array for nil to
Browse files Browse the repository at this point in the history
  • Loading branch information
jdowning100 committed May 20, 2024
1 parent 31bd59b commit c378a6a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/types/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit c378a6a

Please sign in to comment.