Skip to content

Commit b9cb992

Browse files
authored
fix(levm): also use config chain_id (#2537)
**Motivation** In #2531 only one of the creation methods was fixed to use chain_id from the config **Description** This PR changes it in the other constructor
1 parent fbfe149 commit b9cb992

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/vm/backends/levm/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ impl LEVM {
124124
coinbase: block_header.coinbase,
125125
timestamp: block_header.timestamp.into(),
126126
prev_randao: Some(block_header.prev_randao),
127-
chain_id: tx.chain_id().unwrap_or_default().into(),
127+
chain_id: chain_config.chain_id.into(),
128128
base_fee_per_gas: block_header.base_fee_per_gas.unwrap_or_default().into(),
129129
gas_price,
130130
block_excess_blob_gas: block_header.excess_blob_gas.map(U256::from),

0 commit comments

Comments
 (0)