From 09068ac6abb7c7c16509e77e521ea0c033bbd3b3 Mon Sep 17 00:00:00 2001 From: dzmitry-lahoda Date: Mon, 4 Sep 2023 14:22:38 +0100 Subject: [PATCH] fixed vesting benchmarks --- code/parachain/frame/vesting/src/benchmarks.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/code/parachain/frame/vesting/src/benchmarks.rs b/code/parachain/frame/vesting/src/benchmarks.rs index a1c2b42e504..e0106912b01 100644 --- a/code/parachain/frame/vesting/src/benchmarks.rs +++ b/code/parachain/frame/vesting/src/benchmarks.rs @@ -1,7 +1,6 @@ -#![cfg(feature = "runtime-benchmarks")] - #[cfg(test)] use crate::Pallet as Vesting; + use crate::{ types::{ VestingSchedule, VestingScheduleIdSet, VestingScheduleInfo, VestingWindow::BlockNumberBased, @@ -29,7 +28,11 @@ where AssetIdOf::::decode(&mut &a[..]).unwrap() } -fn fund_account(caller: &T::AccountId, asset_id: AssetIdOf, amount: BalanceOf) +fn fund_account( + caller: &T::AccountId, + asset_id: AssetIdOf, + amount: BalanceOf, +) -> BalanceOf where T: Config, BalanceOf: From, @@ -92,6 +95,7 @@ benchmarks! { BalanceOf: From, BlockNumberOf: From, ::Currency: Mutate, AssetId = AssetIdOf>, + } claim {