From f448ce13693b26ad00f84cec15614214858a21a0 Mon Sep 17 00:00:00 2001 From: "lightclient@protonmail.com" Date: Tue, 5 Jul 2022 10:41:33 -0500 Subject: [PATCH] internal/ethapi: fix chain id check to return all non-zero ids --- internal/ethapi/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 3e292906220..a3637969e81 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -1290,7 +1290,7 @@ func newRPCTransaction(tx *types.Transaction, blockHash common.Hash, blockNumber switch tx.Type() { case types.LegacyTxType: // if a legacy transaction has an EIP-155 chain id, include it explicitly - if id := tx.ChainId(); id.Sign() == 0 { + if id := tx.ChainId(); id.Sign() != 0 { result.ChainID = (*hexutil.Big)(id) } case types.AccessListTxType: