File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed
substrate/frame/assets/precompiles/src Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -179,20 +179,20 @@ where
179179 }
180180 } ,
181181 None => {
182- log:: warn !(
182+ log:: error !(
183183 target: "runtime::MigrateForeignAssetPrecompileMappings::post_upgrade" ,
184184 "Asset {:?} not migrated" ,
185185 asset_id
186186 ) ;
187+ return Err ( sp_runtime:: TryRuntimeError :: Other ( "Asset not migrated" ) ) ;
187188 } ,
188189 }
189190 }
190191
191192 log:: info!(
192193 target: "runtime::MigrateForeignAssetPrecompileMappings::post_upgrade" ,
193- "Verified {} out of {} foreign asset mappings" ,
194- migrated,
195- unmapped_assets. len( )
194+ "Verified {} foreign asset mappings" ,
195+ migrated
196196 ) ;
197197
198198 Ok ( ( ) )
Original file line number Diff line number Diff line change 2727use crate :: foreign_assets:: pallet:: { Config , Pallet } ;
2828use frame_benchmarking:: v2:: * ;
2929
30- /// Helper trait for benchmarking that creates asset IDs.
31- pub trait BenchmarkHelper < AssetId > {
32- /// Create a valid asset ID for benchmarking from a seed.
33- fn create_asset_id ( seed : u32 ) -> AssetId ;
34- }
35-
3630#[ benchmarks(
3731 where
3832 T :: ForeignAssetId : From <u32 >,
You can’t perform that action at this time.
0 commit comments