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 blakehhuynh committed Oct 3, 2022
1 parent 999a632 commit b290f13
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 b290f13

Please sign in to comment.