mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 14:01:02 +00:00
Avoid an excessive amount of unrelated errors on prior rustc error
`1.into()` -> `ParaId::from(1_u32)` (#5500)
This commit is contained in:
committed by
GitHub
parent
718380119a
commit
b67b7fa355
@@ -631,7 +631,7 @@ mod tests {
|
||||
|
||||
assert_ok!(TestRegistrar::<Test>::register(
|
||||
1,
|
||||
ParaId::from(1),
|
||||
ParaId::from(1_u32),
|
||||
dummy_head_data(),
|
||||
dummy_validation_code()
|
||||
));
|
||||
@@ -662,7 +662,7 @@ mod tests {
|
||||
|
||||
assert_ok!(TestRegistrar::<Test>::register(
|
||||
1,
|
||||
ParaId::from(1),
|
||||
ParaId::from(1_u32),
|
||||
dummy_head_data(),
|
||||
dummy_validation_code()
|
||||
));
|
||||
@@ -705,7 +705,7 @@ mod tests {
|
||||
|
||||
assert_ok!(TestRegistrar::<Test>::register(
|
||||
1,
|
||||
ParaId::from(1),
|
||||
ParaId::from(1_u32),
|
||||
dummy_head_data(),
|
||||
dummy_validation_code()
|
||||
));
|
||||
@@ -755,7 +755,7 @@ mod tests {
|
||||
|
||||
assert_ok!(TestRegistrar::<Test>::register(
|
||||
1,
|
||||
ParaId::from(1),
|
||||
ParaId::from(1_u32),
|
||||
dummy_head_data(),
|
||||
dummy_validation_code()
|
||||
));
|
||||
@@ -790,7 +790,7 @@ mod tests {
|
||||
|
||||
assert_ok!(TestRegistrar::<Test>::register(
|
||||
1,
|
||||
ParaId::from(1),
|
||||
ParaId::from(1_u32),
|
||||
dummy_head_data(),
|
||||
dummy_validation_code()
|
||||
));
|
||||
@@ -833,7 +833,7 @@ mod tests {
|
||||
|
||||
assert_ok!(TestRegistrar::<Test>::register(
|
||||
1,
|
||||
ParaId::from(1),
|
||||
ParaId::from(1_u32),
|
||||
dummy_head_data(),
|
||||
dummy_validation_code()
|
||||
));
|
||||
@@ -858,7 +858,7 @@ mod tests {
|
||||
}
|
||||
|
||||
// Leases is empty.
|
||||
assert!(Leases::<Test>::get(ParaId::from(1)).is_empty());
|
||||
assert!(Leases::<Test>::get(ParaId::from(1_u32)).is_empty());
|
||||
});
|
||||
}
|
||||
|
||||
@@ -869,13 +869,13 @@ mod tests {
|
||||
|
||||
assert_ok!(TestRegistrar::<Test>::register(
|
||||
1,
|
||||
ParaId::from(1),
|
||||
ParaId::from(1_u32),
|
||||
dummy_head_data(),
|
||||
dummy_validation_code()
|
||||
));
|
||||
assert_ok!(TestRegistrar::<Test>::register(
|
||||
1,
|
||||
ParaId::from(2),
|
||||
ParaId::from(2_u32),
|
||||
dummy_head_data(),
|
||||
dummy_validation_code()
|
||||
));
|
||||
@@ -900,19 +900,19 @@ mod tests {
|
||||
run_to_block(1);
|
||||
assert_ok!(TestRegistrar::<Test>::register(
|
||||
1,
|
||||
ParaId::from(1),
|
||||
ParaId::from(1_u32),
|
||||
dummy_head_data(),
|
||||
dummy_validation_code()
|
||||
));
|
||||
assert_ok!(TestRegistrar::<Test>::register(
|
||||
1,
|
||||
ParaId::from(2),
|
||||
ParaId::from(2_u32),
|
||||
dummy_head_data(),
|
||||
dummy_validation_code()
|
||||
));
|
||||
assert_ok!(TestRegistrar::<Test>::register(
|
||||
1,
|
||||
ParaId::from(3),
|
||||
ParaId::from(3_u32),
|
||||
dummy_head_data(),
|
||||
dummy_validation_code()
|
||||
));
|
||||
@@ -920,9 +920,9 @@ mod tests {
|
||||
// We will directly manipulate leases to emulate some kind of failure in the system.
|
||||
// Para 1 will have no leases
|
||||
// Para 2 will have a lease period in the current index
|
||||
Leases::<Test>::insert(ParaId::from(2), vec![Some((0, 0))]);
|
||||
Leases::<Test>::insert(ParaId::from(2_u32), vec![Some((0, 0))]);
|
||||
// Para 3 will have a lease period in a future index
|
||||
Leases::<Test>::insert(ParaId::from(3), vec![None, None, Some((0, 0))]);
|
||||
Leases::<Test>::insert(ParaId::from(3_u32), vec![None, None, Some((0, 0))]);
|
||||
|
||||
// Para 1 should fail cause they don't have any leases
|
||||
assert_noop!(
|
||||
|
||||
Reference in New Issue
Block a user