Skip to content

Commit

Permalink
legacy tx do not has chainid (#1406)
Browse files Browse the repository at this point in the history
  • Loading branch information
lightsing authored Aug 27, 2024
1 parent 29b152a commit 8519427
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion eth-types/src/l2_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,11 @@ impl TransactionTrace {
access_list: self.access_list.as_ref().map(|al| AccessList(al.clone())),
max_priority_fee_per_gas: self.gas_tip_cap,
max_fee_per_gas: self.gas_fee_cap,
chain_id: Some(self.chain_id),
chain_id: if self.type_ != 0 || self.v.as_u64() >= 35 {
Some(self.chain_id)
} else {
None
},
other: Default::default(),
}
}
Expand Down

0 comments on commit 8519427

Please sign in to comment.