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
+ 174
124
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -63,7 +63,8 @@ use impl_trait_for_tuples::impl_for_tuples;
@@ -63,7 +63,8 @@ use impl_trait_for_tuples::impl_for_tuples;
#[impl_for_tuples(5)]
#[impl_for_tuples(5)]
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