Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update core/src/commands/on_runtime_upgrade.rs
Co-authored-by: Oliver Tale-Yazdi <[email protected]>
  • Loading branch information
tmpolaczyk and ggwpez authored Feb 26, 2024
commit 947f9cf7bee2782f2866c3bf5b5bbe70cea37369
2 changes: 1 addition & 1 deletion core/src/commands/on_runtime_upgrade.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ where
log::info!("Changed storage keys:");
let changes_after =
collect_storage_changes_as_hex::<Block>(&overlayed_changes);
overlayed_changes.rollback_transaction().unwrap();
overlayed_changes.rollback_transaction().expect("Migrations must not rollback transactions that they did not open");
let changes_before =
collect_storage_changes_as_hex::<Block>(&overlayed_changes);

Expand Down