Skip to content

Commit

Permalink
Update frame/glutton/src/lib.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Kian Paimani <[email protected]>
  • Loading branch information
Szegoo and kianenigma authored Feb 17, 2023
1 parent a42b1d2 commit 98a237a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions frame/glutton/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,7 @@ pub mod pallet {
let proof_size_limit = Storage::<T>::get().mul_floor(meter.remaining().proof_size());
let computation_weight_limit =
Compute::<T>::get().mul_floor(meter.remaining().ref_time());
let mut meter = WeightMeter::from_limit(Weight::from_parts(
computation_weight_limit,
proof_size_limit,
));
metere.check_accrue(Weight::from_parts(computation_weight_limit, computation_weight_limit));

Self::waste_at_most_proof_size(&mut meter);
Self::waste_at_most_ref_time(&mut meter);
Expand Down

0 comments on commit 98a237a

Please sign in to comment.