mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 18:41:05 +00:00
Remove Ord impl for Weights V2 and add comparison fns (#12183)
* Remove Ord impl for Weights V2 and add comparison fns * Remove TODO * Update frame/multisig/src/lib.rs Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update frame/election-provider-multi-phase/src/unsigned.rs Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Remove unused import * cargo fmt * Fix tests * Fix more tests * cargo fmt * Fix more tests * Update frame/contracts/src/wasm/mod.rs Co-authored-by: Alexander Theißen <alex.theissen@me.com> * Update weight benchmarking templates Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: Alexander Theißen <alex.theissen@me.com>
This commit is contained in:
@@ -881,7 +881,7 @@ impl<T: Config<I>, I: 'static> Pallet<T, I> {
|
||||
ensure!(proposal_len <= length_bound, Error::<T, I>::WrongProposalLength);
|
||||
let proposal = ProposalOf::<T, I>::get(hash).ok_or(Error::<T, I>::ProposalMissing)?;
|
||||
let proposal_weight = proposal.get_dispatch_info().weight;
|
||||
ensure!(proposal_weight <= weight_bound, Error::<T, I>::WrongProposalWeight);
|
||||
ensure!(proposal_weight.all_lte(weight_bound), Error::<T, I>::WrongProposalWeight);
|
||||
Ok((proposal, proposal_len as usize))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user