From fe3e453fecc9cb95919cd7da220a6a9879734192 Mon Sep 17 00:00:00 2001 From: acerone85 Date: Mon, 30 Sep 2024 15:13:01 +0100 Subject: [PATCH] Avoid unwrap --- crates/fuel-core/src/state/historical_rocksdb.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/fuel-core/src/state/historical_rocksdb.rs b/crates/fuel-core/src/state/historical_rocksdb.rs index 0f0cc91126f..675b60b2100 100644 --- a/crates/fuel-core/src/state/historical_rocksdb.rs +++ b/crates/fuel-core/src/state/historical_rocksdb.rs @@ -375,8 +375,7 @@ where if let Some(v1_changes) = v1_changes { migration_transaction .storage_as_mut::>() - .insert(&height, &v1_changes) - .unwrap(); + .insert(&height, &v1_changes)?; self.db .commit_changes(&migration_transaction.into_changes())?;