From 7172d85e1162b6b3944f363259a90cfe01b113cf Mon Sep 17 00:00:00 2001 From: girazoki Date: Wed, 24 Apr 2024 17:43:52 +0200 Subject: [PATCH] remove unwrap for expect --- pallets/foreign-asset-creator/src/benchmarks.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pallets/foreign-asset-creator/src/benchmarks.rs b/pallets/foreign-asset-creator/src/benchmarks.rs index 55458794..7bad7f5c 100644 --- a/pallets/foreign-asset-creator/src/benchmarks.rs +++ b/pallets/foreign-asset-creator/src/benchmarks.rs @@ -52,7 +52,7 @@ where let admin: T::AccountId = whitelisted_caller(); let origin = T::ForeignAssetCreatorOrigin::try_successful_origin() .map_err(|_| BenchmarkError::Weightless) - .unwrap(); + .expect("Not able to generate an appropriate origin to disptach the call"); assert!(Pallet::::create_foreign_asset( origin, foreign_asset.clone(),