Skip to content

Commit

Permalink
internal/ethapi: fix chain ID check to return all non-zero IDs (#25244)
Browse files Browse the repository at this point in the history
  • Loading branch information
lightclient authored Jul 7, 2022
1 parent e394d01 commit ae8ce72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/ethapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ae8ce72

Please sign in to comment.