--- a/runtime/tests/src/lib.rs +++ b/runtime/tests/src/lib.rs @@ -292,6 +292,7 @@ type WeightInfo = (); type CommonWeightInfo = CommonWeights; type RefungibleExtensionsWeightInfo = CommonWeights; + type StructureWeightInfo = pallet_structure::weights::SubstrateWeight; } // Build genesis storage according to the mock runtime. --- a/runtime/tests/src/tests.rs +++ b/runtime/tests/src/tests.rs @@ -2624,10 +2624,10 @@ use super::*; - fn test bool>( + fn test( i: usize, test_case: &pallet_common::tests::TestCase, - check_token_existence: &mut LazyValue, + check_token_existence: &mut LazyValue, ) { let collection_admin = test_case.collection_admin; let mut is_collection_admin = LazyValue::new(|| test_case.is_collection_admin); @@ -2635,7 +2635,7 @@ let mut is_token_owner = LazyValue::new(|| Ok(test_case.is_token_owner)); let is_no_permission = test_case.no_permission; - let result = pallet_common::tests::check_token_permissions::( + let result = pallet_common::tests::check_token_permissions::( collection_admin, token_owner, &mut is_collection_admin,