Skip to content

Commit

Permalink
Use sp_io hashing instead of sp_core
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanwhit committed Nov 1, 2023
1 parent b0eb4d3 commit 80e37d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ impl OnRuntimeUpgrade for MigrateBags {
fn on_runtime_upgrade() -> Weight {
const BAGS_LIST_MIGRATION: &[u8] = b"ctc:bags_list_thresholds_migrated";
const OLD_THRESHOLDS: &[u64] = &[];
let key = sp_core::hashing::blake2_256(BAGS_LIST_MIGRATION);
let key = sp_io::hashing::twox_256(BAGS_LIST_MIGRATION);
if let Some(_v) = sp_io::storage::get(&key) {
Weight::zero()
} else {
Expand Down

0 comments on commit 80e37d9

Please sign in to comment.