Skip to content

Commit 9dbd917

Browse files
authored
Revert "core/types: add "chainID" field to legacy tx JSON encoding (ethereum#27452)"
This reverts commit 120956b.
1 parent ab54401 commit 9dbd917

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

core/types/transaction_marshalling.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,6 @@ func (tx *Transaction) MarshalJSON() ([]byte, error) {
6969
enc.V = (*hexutil.Big)(itx.V)
7070
enc.R = (*hexutil.Big)(itx.R)
7171
enc.S = (*hexutil.Big)(itx.S)
72-
if tx.Protected() {
73-
enc.ChainID = (*hexutil.Big)(tx.ChainId())
74-
}
7572

7673
case *AccessListTx:
7774
enc.ChainID = (*hexutil.Big)(itx.ChainID)

0 commit comments

Comments
 (0)