Skip to content

Commit

Permalink
remove unwrap for expect
Browse files Browse the repository at this point in the history
  • Loading branch information
girazoki committed Apr 24, 2024
1 parent b7d3194 commit 7172d85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pallets/foreign-asset-creator/src/benchmarks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<T>::create_foreign_asset(
origin,
foreign_asset.clone(),
Expand Down

0 comments on commit 7172d85

Please sign in to comment.