Skip to content

Commit

Permalink
fixed vesting benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmitry-lahoda committed Sep 4, 2023
1 parent beed5a4 commit 09068ac
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions code/parachain/frame/vesting/src/benchmarks.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#![cfg(feature = "runtime-benchmarks")]

#[cfg(test)]
use crate::Pallet as Vesting;

use crate::{
types::{
VestingSchedule, VestingScheduleIdSet, VestingScheduleInfo, VestingWindow::BlockNumberBased,
Expand Down Expand Up @@ -29,7 +28,11 @@ where
AssetIdOf::<T>::decode(&mut &a[..]).unwrap()
}

fn fund_account<T>(caller: &T::AccountId, asset_id: AssetIdOf<T>, amount: BalanceOf<T>)
fn fund_account<T>(
caller: &T::AccountId,
asset_id: AssetIdOf<T>,
amount: BalanceOf<T>,
) -> BalanceOf<T>
where
T: Config,
BalanceOf<T>: From<u64>,
Expand Down Expand Up @@ -92,6 +95,7 @@ benchmarks! {
BalanceOf<T>: From<u64>,
BlockNumberOf<T>: From<u32>,
<T as Config>::Currency: Mutate<T::AccountId, Balance = BalanceOf<T>, AssetId = AssetIdOf<T>>,

}

claim {
Expand Down

0 comments on commit 09068ac

Please sign in to comment.