File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 11use super :: * ;
2+ use alloc:: string:: String ;
23use frame_support:: traits:: DefensiveResult ;
34use frame_support:: {
45 pallet_prelude:: { Identity , OptionQuery } ,
@@ -79,7 +80,10 @@ pub fn migrate_fix_total_coldkey_stake<T: Config>() -> Weight {
7980 return Weight :: zero ( ) ;
8081 }
8182
82- log:: info!( "Running migration '{:?}'" , migration_name) ;
83+ log:: info!(
84+ "Running migration '{}'" ,
85+ String :: from_utf8_lossy( & migration_name)
86+ ) ;
8387
8488 // Run the migration
8589 weight = weight. saturating_add ( do_migrate_fix_total_coldkey_stake :: < T > ( ) ) ;
@@ -94,7 +98,7 @@ pub fn migrate_fix_total_coldkey_stake<T: Config>() -> Weight {
9498
9599 log:: info!(
96100 "Migration '{:?}' completed. Storage version set to 7." ,
97- migration_name
101+ String :: from_utf8_lossy ( & migration_name)
98102 ) ;
99103
100104 // Return the migration weight.
You can’t perform that action at this time.
0 commit comments