Skip to content

Commit

Permalink
internal/ethapi: fix chain ID check to return all non-zero IDs (ether…
Browse files Browse the repository at this point in the history
  • Loading branch information
lightclient authored and cp-wjhan committed Sep 22, 2023
1 parent 5d5e466 commit 09f65bc
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 @@ -1441,7 +1441,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 09f65bc

Please sign in to comment.