mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-24 10:11:08 +00:00
Fix Society v2 migration (#14421)
* fix society v2 migration * Update frame/society/src/migrations.rs * Update frame/society/src/migrations.rs Co-authored-by: Bastian Köcher <git@kchr.de> * Update frame/society/src/migrations.rs Co-authored-by: Bastian Köcher <git@kchr.de> * update for versioned upgrade * fix society v2 migration * remove references to members being sorted from commnets * fix type * fix can_migrate check * add sanity log * fix sanity check * kick ci * kick ci * run tests with --experimental flag * versioned migration cleanup * revert pipeline change * use defensive! * semicolons * defensive and doc comment * address pr comment * feature gate the versioned migration * defensive_unwrap_or * fix test * fix doc comment * change defensive to a log warning * remove can_migrate anti-pattern * Update frame/society/Cargo.toml Co-authored-by: Bastian Köcher <git@kchr.de> * add experimental feature warning to doc comment * update doc comment * bump ci * kick ci * kick ci * kick ci --------- Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> Co-authored-by: Bastian Köcher <git@kchr.de>
This commit is contained in:
@@ -77,7 +77,7 @@ fn migration_works() {
|
||||
.collect::<Vec<_>>();
|
||||
old::Bids::<Test, ()>::put(bids);
|
||||
|
||||
migrations::from_original::<Test, ()>(&mut [][..]);
|
||||
migrations::from_original::<Test, ()>(&mut [][..]).expect("migration failed");
|
||||
migrations::assert_internal_consistency::<Test, ()>();
|
||||
|
||||
assert_eq!(
|
||||
|
||||
Reference in New Issue
Block a user