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 1
1
use super :: * ;
2
+ use alloc:: string:: String ;
2
3
use frame_support:: traits:: DefensiveResult ;
3
4
use frame_support:: {
4
5
pallet_prelude:: { Identity , OptionQuery } ,
@@ -79,7 +80,10 @@ pub fn migrate_fix_total_coldkey_stake<T: Config>() -> Weight {
79
80
return Weight :: zero ( ) ;
80
81
}
81
82
82
- log:: info!( "Running migration '{:?}'" , migration_name) ;
83
+ log:: info!(
84
+ "Running migration '{}'" ,
85
+ String :: from_utf8_lossy( & migration_name)
86
+ ) ;
83
87
84
88
// Run the migration
85
89
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 {
94
98
95
99
log:: info!(
96
100
"Migration '{:?}' completed. Storage version set to 7." ,
97
- migration_name
101
+ String :: from_utf8_lossy ( & migration_name)
98
102
) ;
99
103
100
104
// Return the migration weight.
You can’t perform that action at this time.
0 commit comments