Skip to content
Snippets Groups Projects

build: LTO profile 'thin' and moved to Cargo.toml

Merged pini requested to merge pini-lto-thin into master
Files
5
@@ -29,11 +29,10 @@ use crate::Pallet;
const SEED: u32 = 0;
benchmarks! {
where_clause {
where
where_clause { where
T: pallet_balances::Config,
T::Balance: From<u64>,
<T::Currency as Currency<T::AccountId>>::Balance: IsType<T::Balance>+From<T::Balance>
<T::Currency as Currency<T::AccountId>>::Balance: IsType<T::Balance>
}
create_oneshot_account {
let existential_deposit = T::ExistentialDeposit::get();
@@ -52,6 +51,11 @@ benchmarks! {
assert_eq!(Balances::<T>::free_balance(&caller), transfer_amount);
assert_eq!(OneshotAccounts::<T>::get(&recipient), Some(transfer_amount.into()));
}
where_clause { where
T: pallet_balances::Config,
T::Balance: From<u64>,
<T::Currency as Currency<T::AccountId>>::Balance: IsType<T::Balance>+From<T::Balance>
}
consume_oneshot_account {
let existential_deposit = T::ExistentialDeposit::get();
let caller: T::AccountId = whitelisted_caller();
@@ -81,6 +85,11 @@ benchmarks! {
existential_deposit.saturating_mul((3).into())
);
}
where_clause { where
T: pallet_balances::Config,
T::Balance: From<u64>,
<T::Currency as Currency<T::AccountId>>::Balance: IsType<T::Balance>+From<T::Balance>
}
consume_oneshot_account_with_remaining {
let existential_deposit = T::ExistentialDeposit::get();
let caller: T::AccountId = whitelisted_caller();
Loading