Skip to content

Commit

Permalink
fix: fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lastminutedev committed Nov 22, 2023
1 parent 8787180 commit 1c34a61
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bus-mapping/src/circuit_input_builder/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ impl BlockHead {
base_fee: eth_block.base_fee_per_gas.unwrap_or_default(),
eth_block: eth_block.clone(),
last_applied_l1_block: eth_block.last_applied_l1_block.map(|b| b.as_u64()),
l1_block_hashes: None,
l1_block_hashes: eth_block.l1_block_hashes.clone(),
})
}

Expand Down
1 change: 1 addition & 0 deletions eth-types/src/l2_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ impl From<&BlockTrace> for EthBlock {
EthBlock {
transactions: txs,
difficulty: 0.into(),
l1_block_hashes: b.l1_block_hashes.clone(),
..b.header.clone()
}
}
Expand Down
4 changes: 2 additions & 2 deletions mock/src/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ impl From<MockBlock> for Block<Transaction> {
withdrawals: None,
withdrawals_root: None,
last_applied_l1_block: Some(mock.last_applied_l1_block),
l1_block_hashes: None,
l1_block_hashes: mock.l1_block_hashes,
}
}
}
Expand Down Expand Up @@ -148,7 +148,7 @@ impl From<MockBlock> for Block<()> {
withdrawals: None,
withdrawals_root: None,
last_applied_l1_block: Some(mock.last_applied_l1_block),
l1_block_hashes: None,
l1_block_hashes: mock.l1_block_hashes,
}
}
}
Expand Down

0 comments on commit 1c34a61

Please sign in to comment.