From 0ae1e082917eb38bfce71fa893b2127b93bd460f Mon Sep 17 00:00:00 2001 From: devopsbo3 <69951731+devopsbo3@users.noreply.github.com> Date: Fri, 10 Nov 2023 12:31:54 -0600 Subject: [PATCH] Revert "core/types: add "chainID" field to legacy tx JSON encoding (#27452)" This reverts commit 120956b80b55caa855918db564da3ea0c77ec516. --- core/types/transaction_marshalling.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/core/types/transaction_marshalling.go b/core/types/transaction_marshalling.go index 8e3db617703a5..070927484cc7c 100644 --- a/core/types/transaction_marshalling.go +++ b/core/types/transaction_marshalling.go @@ -69,9 +69,6 @@ func (tx *Transaction) MarshalJSON() ([]byte, error) { enc.V = (*hexutil.Big)(itx.V) enc.R = (*hexutil.Big)(itx.R) enc.S = (*hexutil.Big)(itx.S) - if tx.Protected() { - enc.ChainID = (*hexutil.Big)(tx.ChainId()) - } case *AccessListTx: enc.ChainID = (*hexutil.Big)(itx.ChainID)