mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-18 03:41:02 +00:00
Deprecate Weight::from_{ref_time, proof_size} (#13475)
* Deprecate Weight::from_{ref_time, proof_size}
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Update templates
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Use from_parts
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Use from_parts
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Dont revert comment 🤦
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_balances
* Update weight files
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* More fixes
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Adapt to Master changes
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: command-bot <>
This commit is contained in:
committed by
GitHub
parent
7981d4aa59
commit
9e56e1acdd
@@ -288,7 +288,7 @@ fn proposal_weight_limit_works_on_approve() {
|
||||
RuntimeOrigin::signed(4),
|
||||
hash,
|
||||
0,
|
||||
proposal_weight - Weight::from_ref_time(100),
|
||||
proposal_weight - Weight::from_parts(100, 0),
|
||||
proposal_len
|
||||
),
|
||||
Error::<Test, Instance1>::WrongProposalWeight
|
||||
@@ -327,7 +327,7 @@ fn proposal_weight_limit_ignored_on_disapprove() {
|
||||
RuntimeOrigin::signed(4),
|
||||
hash,
|
||||
0,
|
||||
proposal_weight - Weight::from_ref_time(100),
|
||||
proposal_weight - Weight::from_parts(100, 0),
|
||||
proposal_len
|
||||
));
|
||||
})
|
||||
@@ -750,7 +750,7 @@ fn correct_validate_and_get_proposal() {
|
||||
Collective::validate_and_get_proposal(
|
||||
&hash,
|
||||
length,
|
||||
weight - Weight::from_ref_time(10)
|
||||
weight - Weight::from_parts(10, 0)
|
||||
),
|
||||
Error::<Test, Instance1>::WrongProposalWeight
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user