Skip to content

Commit

Permalink
fix: batch number null issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dutterbutter committed Dec 18, 2024
1 parent 75938ec commit 495dba4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion crates/core/src/fork.rs
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ impl ForkDetails {
.get_block_by_hash(root_hash, true)
.await
.map_err(|error| eyre!(error))?;
let block = opt_block.ok_or_else(|| {
let mut block = opt_block.ok_or_else(|| {
eyre!(
"Could not find block #{:?} ({:#x}) in {:?}",
miniblock,
Expand All @@ -548,6 +548,7 @@ impl ForkDetails {
)
})?;
let l1_batch_number = block_details.l1_batch_number;
block.l1_batch_number = Some(l1_batch_number.0.into());

if !block_details
.protocol_version
Expand Down
1 change: 0 additions & 1 deletion e2e-tests-rust/tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,6 @@ async fn load_state_on_run() -> anyhow::Result<()> {
}

#[tokio::test]
#[ignore]
async fn load_state_on_fork() -> anyhow::Result<()> {
let temp_dir = TempDir::new("load-state-fork-test").expect("failed creating temporary dir");
let dump_path = temp_dir.path().join("load_state_fork.json");
Expand Down

0 comments on commit 495dba4

Please sign in to comment.