mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 16:51:02 +00:00
Remove migration code. (#5291)
* Remove migration code. * Fix cargo * Bump spec version
This commit is contained in:
@@ -318,21 +318,3 @@ fn time_slot_have_sane_ord() {
|
||||
];
|
||||
assert!(FIXTURE.windows(2).all(|f| f[0] < f[1]));
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(feature = "migrate-authorities")]
|
||||
fn authorities_migration() {
|
||||
use sp_runtime::traits::OnInitialize;
|
||||
|
||||
with_externalities(&mut new_test_ext(vec![]), || {
|
||||
let authorities = to_authorities(vec![(1, 1), (2, 1), (3, 1)]);
|
||||
|
||||
Authorities::put(authorities.clone());
|
||||
assert!(Grandpa::grandpa_authorities().is_empty());
|
||||
|
||||
Grandpa::on_initialize(1);
|
||||
|
||||
assert!(!Authorities::exists());
|
||||
assert_eq!(Grandpa::grandpa_authorities(), authorities);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user