Companion for #7363 (Account-providers ref-counting) (#2152)

* Fix

* Fix

* Bump Substrate

Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
This commit is contained in:
Gavin Wood
2021-01-16 20:18:13 +01:00
committed by GitHub
parent 366c229f6f
commit 8ec9040b00
6 changed files with 288 additions and 295 deletions
+277 -284
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -651,7 +651,7 @@ mod tests {
type PalletInfo = (); type PalletInfo = ();
type AccountData = pallet_balances::AccountData<u64>; type AccountData = pallet_balances::AccountData<u64>;
type OnNewAccount = (); type OnNewAccount = ();
type OnKilledAccount = Balances; type OnKilledAccount = ();
type SystemWeightInfo = (); type SystemWeightInfo = ();
type SS58Prefix = (); type SS58Prefix = ();
} }
+1 -1
View File
@@ -644,7 +644,7 @@ mod tests {
type PalletInfo = (); type PalletInfo = ();
type AccountData = pallet_balances::AccountData<u64>; type AccountData = pallet_balances::AccountData<u64>;
type OnNewAccount = (); type OnNewAccount = ();
type OnKilledAccount = Balances; type OnKilledAccount = ();
type SystemWeightInfo = (); type SystemWeightInfo = ();
type SS58Prefix = (); type SS58Prefix = ();
} }
@@ -329,7 +329,7 @@ mod tests {
type PalletInfo = (); type PalletInfo = ();
type AccountData = pallet_balances::AccountData<u128>; type AccountData = pallet_balances::AccountData<u128>;
type OnNewAccount = (); type OnNewAccount = ();
type OnKilledAccount = Balances; type OnKilledAccount = ();
type SystemWeightInfo = (); type SystemWeightInfo = ();
type SS58Prefix = (); type SS58Prefix = ();
} }
@@ -563,21 +563,21 @@ mod tests {
Sr25519Keyring::Two, Sr25519Keyring::Two,
]; ];
let balances: Vec<_> = (0..authority_keys.len()).map(|i| (i as u64, 10_000_000)).collect();
pallet_balances::GenesisConfig::<Test> {
balances,
}.assimilate_storage(&mut t).unwrap();
// stashes are the index. // stashes are the index.
let session_keys: Vec<_> = authority_keys.iter().enumerate() let session_keys: Vec<_> = authority_keys.iter().enumerate()
.map(|(i, _k)| (i as u64, i as u64, UintAuthorityId(i as u64))) .map(|(i, _k)| (i as u64, i as u64, UintAuthorityId(i as u64)))
.collect(); .collect();
let balances: Vec<_> = (0..authority_keys.len()).map(|i| (i as u64, 10_000_000)).collect();
pallet_session::GenesisConfig::<Test> { pallet_session::GenesisConfig::<Test> {
keys: session_keys, keys: session_keys,
}.assimilate_storage(&mut t).unwrap(); }.assimilate_storage(&mut t).unwrap();
pallet_balances::GenesisConfig::<Test> {
balances,
}.assimilate_storage(&mut t).unwrap();
t.into() t.into()
} }
+1 -1
View File
@@ -445,7 +445,7 @@ mod tests {
type PalletInfo = (); type PalletInfo = ();
type AccountData = pallet_balances::AccountData<u64>; type AccountData = pallet_balances::AccountData<u64>;
type OnNewAccount = (); type OnNewAccount = ();
type OnKilledAccount = Balances; type OnKilledAccount = ();
type SystemWeightInfo = (); type SystemWeightInfo = ();
type SS58Prefix = (); type SS58Prefix = ();
} }
+1 -1
View File
@@ -982,7 +982,7 @@ mod tests {
type PalletInfo = (); type PalletInfo = ();
type AccountData = pallet_balances::AccountData<u64>; type AccountData = pallet_balances::AccountData<u64>;
type OnNewAccount = (); type OnNewAccount = ();
type OnKilledAccount = Balances; type OnKilledAccount = ();
type SystemWeightInfo = (); type SystemWeightInfo = ();
type SS58Prefix = (); type SS58Prefix = ();
} }