Skip to content
Snippets Groups Projects

Fix weight accounting

Merged Benjamin Gallois requested to merge 167-fix-remove-member-weight into master
Compare and Show latest version
5 files
+ 175
124
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -61,9 +61,11 @@ use impl_trait_for_tuples::impl_for_tuples;
@@ -61,9 +61,11 @@ use impl_trait_for_tuples::impl_for_tuples;
// use frame_system::pallet_prelude::*;
// use frame_system::pallet_prelude::*;
#[impl_for_tuples(5)]
#[impl_for_tuples(5)]
 
#[allow(clippy::let_and_return)]
impl<IdtyId> traits::OnEvent<IdtyId> for Tuple {
impl<IdtyId> traits::OnEvent<IdtyId> for Tuple {
fn on_event(event: &Event<IdtyId>) -> Weight {
fn on_event(event: &Event<IdtyId>) -> Weight {
for_tuples!( #( Tuple::on_event(event); )* );
let mut weight = Weight::zero();
Weight::zero() // TODO
for_tuples!( #( weight = weight.saturating_add(Tuple::on_event(event)); )* );
 
weight
}
}
}
}
Loading