Skip to content

Commit 6fe0343

Browse files
committedDec 7, 2023
🐛 fix(mock.rs): update MaxConsumers constant to 3 to allow for more consumers
🐛 fix(mock.rs): remove unused RuntimeFreezeReason type from pallet_balances::Config 🐛 fix(mock.rs): update comment link to correct issue in substrate repository
1 parent a7ffb98 commit 6fe0343

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎pallets/mapped-assets/src/mock.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ impl frame_system::Config for Test {
7272
type SystemWeightInfo = ();
7373
type SS58Prefix = ();
7474
type OnSetCode = ();
75-
type MaxConsumers = ConstU32<2>;
75+
type MaxConsumers = ConstU32<3>;
7676
}
7777

7878
parameter_types! {
@@ -107,10 +107,10 @@ impl pallet_balances::Config for Test {
107107
type MaxReserves = ();
108108
type ReserveIdentifier = [u8; 8];
109109
type RuntimeHoldReason = ();
110+
type RuntimeFreezeReason = ();
110111
type FreezeIdentifier = ();
111112
type MaxHolds = ();
112113
type MaxFreezes = ();
113-
type RuntimeFreezeReason = ();
114114
}
115115

116116
pub struct AssetsCallbackHandle;
@@ -246,7 +246,7 @@ pub(crate) fn new_test_ext() -> sp_io::TestExternalities {
246246
config.assimilate_storage(&mut storage).unwrap();
247247

248248
let mut ext: sp_io::TestExternalities = storage.into();
249-
// Clear thread local vars for https://github.com/paritytech/polkadot-sdk/issues/10479.
249+
// Clear thread local vars for https://github.com/paritytech/substrate/issues/10479.
250250
ext.execute_with(|| take_hooks());
251251
ext.execute_with(|| System::set_block_number(1));
252252
ext

0 commit comments

Comments
 (0)