Skip to content

Commit

Permalink
Update weights
Browse files Browse the repository at this point in the history
  • Loading branch information
ukint-vs committed Jul 26, 2023
1 parent d2755eb commit 11404be
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 35 deletions.
4 changes: 2 additions & 2 deletions pallets/airdrop/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ pub mod pallet {
/// Emits the following events:
/// - `TokensDeposited{ dest, amount }`
#[pallet::call_index(0)]
#[pallet::weight(<T as Config>::WeightInfo::transfer())]
#[pallet::weight(<T as Config>::WeightInfo::transfer(1))]
pub fn transfer(
origin: OriginFor<T>,
source: T::AccountId,
Expand Down Expand Up @@ -146,7 +146,7 @@ pub mod pallet {
/// Emits the following events:
/// - `VestingScheduleRemoved{ who, schedule_index }`
#[pallet::call_index(1)]
#[pallet::weight(<T as Config>::WeightInfo::transfer())]
#[pallet::weight(<T as Config>::WeightInfo::transfer_vested(1))]
pub fn transfer_vested(
origin: OriginFor<T>,
source: T::AccountId,
Expand Down
92 changes: 60 additions & 32 deletions pallets/airdrop/src/weights.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion runtime/vara/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ impl pallet_gear_messenger::Config for Runtime {

impl pallet_airdrop::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type WeightInfo = pallet_airdrop::weights::AirdropWeight<Runtime>;
type WeightInfo = weights::pallet_airdrop::SubstrateWeight<Runtime>;
type VestingSchedule = Vesting;
}

Expand Down
1 change: 1 addition & 0 deletions runtime/vara/src/weights/mod.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 11404be

Please sign in to comment.