get rid of obsolete weight functions (#1926)

This commit is contained in:
Svyatoslav Nikolsky
2023-03-02 11:21:10 +03:00
committed by Bastian Köcher
parent 50d92eb8de
commit 3a145e5844
14 changed files with 99 additions and 93 deletions
@@ -746,8 +746,9 @@ mod tests {
fn dispatch_info() -> DispatchInfo {
DispatchInfo {
weight: Weight::from_ref_time(
weight: Weight::from_parts(
frame_support::weights::constants::WEIGHT_REF_TIME_PER_SECOND,
0,
),
class: frame_support::dispatch::DispatchClass::Normal,
pays_fee: frame_support::dispatch::Pays::Yes,
@@ -1037,8 +1038,9 @@ mod tests {
initialize_environment(200, 200, [1u8; 32].into(), 200);
let mut dispatch_info = dispatch_info();
dispatch_info.weight = Weight::from_ref_time(
dispatch_info.weight = Weight::from_parts(
frame_support::weights::constants::WEIGHT_REF_TIME_PER_SECOND * 2,
0,
);
// without any size/weight refund: we expect regular reward