Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
asiniscalchi committed Aug 26, 2024
1 parent 410ac52 commit 424cad8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions runtime/laos/src/configs/evm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ mod tests {
);
assert_eq!(
call_result.actual_weight.unwrap(),
Weight::from_parts(1046726000, 11538)
Weight::from_parts(1047726000, 11548)
);

// check gas
Expand All @@ -195,18 +195,18 @@ mod tests {
<Runtime as pallet_evm::Config>::GasWeightMapping::weight_to_gas(
call_result.actual_weight.unwrap()
),
41869
41909
);

// check weights from benchmarking
let weights_from_benchmarking =
weights::pallet_laos_evolution::WeightInfo::<Runtime>::precompile_create_collection();
assert_eq!(weights_from_benchmarking, Weight::from_parts(618022000, 3873));
assert_eq!(weights_from_benchmarking, Weight::from_parts(619016000, 3873));
assert_eq!(
<Runtime as pallet_evm::Config>::GasWeightMapping::weight_to_gas(
weights_from_benchmarking
),
24720
24760
);
});
}
Expand Down Expand Up @@ -257,7 +257,7 @@ mod tests {
wrong_address_call_result.actual_weight.unwrap(),
Weight::from_parts(419526000, 5266)
);
assert_eq!(call_result.actual_weight.unwrap(), Weight::from_parts(449176000, 5562));
assert_eq!(call_result.actual_weight.unwrap(), Weight::from_parts(449426000, 5565));

// check gas
assert_eq!(
Expand All @@ -270,18 +270,18 @@ mod tests {
<Runtime as pallet_evm::Config>::GasWeightMapping::weight_to_gas(
call_result.actual_weight.unwrap()
),
17967
17977
);

// check weights from benchmarking
let weights_from_benchmarking =
weights::pallet_laos_evolution::WeightInfo::<Runtime>::precompile_owner();
assert_eq!(weights_from_benchmarking, Weight::from_parts(29503000, 3509));
assert_eq!(weights_from_benchmarking, Weight::from_parts(29765000, 3509));
assert_eq!(
<Runtime as pallet_evm::Config>::GasWeightMapping::weight_to_gas(
weights_from_benchmarking
),
1180
1190
);
});
}
Expand Down

0 comments on commit 424cad8

Please sign in to comment.