Skip to content

Commit

Permalink
Avoid unwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
acerone85 committed Oct 1, 2024
1 parent 4be2938 commit 7c56f35
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/fuel-core/src/state/historical_rocksdb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,7 @@ where
if let Some(v1_changes) = v1_changes {
migration_transaction
.storage_as_mut::<ModificationsHistoryV2<Description>>()
.insert(&height, &v1_changes)
.unwrap();
.insert(&height, &v1_changes)?;

self.db
.commit_changes(&migration_transaction.into_changes())?;
Expand Down

0 comments on commit 7c56f35

Please sign in to comment.