diff --git a/substrate/frame/assets/src/benchmarking.rs b/substrate/frame/assets/src/benchmarking.rs index 982edf3351..376f19139a 100644 --- a/substrate/frame/assets/src/benchmarking.rs +++ b/substrate/frame/assets/src/benchmarking.rs @@ -514,8 +514,8 @@ benchmarks_instance_pallet! { SystemOrigin::Signed(new_account.clone()).into(), asset_id ).is_ok()); - // `touch` should reserve some balance of the caller... - assert!(!T::Currency::reserved_balance(&new_account).is_zero()); + // `touch` should reserve balance of the caller according to the `AssetAccountDeposit` amount... + assert_eq!(T::Currency::reserved_balance(&new_account), T::AssetAccountDeposit::get()); // ...and also create an `Account` entry. assert!(Account::::contains_key(asset_id.into(), &new_account)); }: _(SystemOrigin::Signed(new_account.clone()), asset_id, true) @@ -535,8 +535,8 @@ benchmarks_instance_pallet! { asset_id, new_account_lookup.clone() ).is_ok()); - // `touch_other` should reserve balance of the freezer - assert!(!T::Currency::reserved_balance(&asset_owner).is_zero()); + // `touch` should reserve balance of the caller according to the `AssetAccountDeposit` amount... + assert_eq!(T::Currency::reserved_balance(&asset_owner), T::AssetAccountDeposit::get()); assert!(Account::::contains_key(asset_id.into(), &new_account)); }: _(SystemOrigin::Signed(asset_owner.clone()), asset_id, new_account_lookup.clone()) verify {