[big refactor] Remove crate aliasing. (#4395)

* Rename: Phase 1.

* Unify codec.

* Fixing: Phase 2

* Fixing: Phase 3.

* Fixing: Phase 4.

* Fixing: Phase 5.

* Fixing: Phase 6.

* Fixing: Phase 7.

* Fixing: Phase 8. Tests

* Fixing: Phase 9. Tests!!!

* Fixing: Phase 10. Moar tests!

* Finally done!

* More fixes.

* Rename primitives:: to sp_core::

* Apply renames in finality-grandpa.

* Fix benches.

* Fix benches 2.

* Revert node-template.

* Fix frame-system in our modules.
This commit is contained in:
Tomasz Drwięga
2019-12-16 13:36:49 +01:00
committed by Gavin Wood
parent f14d98a439
commit 8778ca7dc8
485 changed files with 4023 additions and 4005 deletions
+6 -6
View File
@@ -25,7 +25,7 @@ pub const CURRENT_VERSION: VersionNumber = 1;
#[cfg(any(test, feature = "migrate"))]
mod inner {
use crate::{Store, Module, Trait};
use support::{StorageLinkedMap, StorageValue};
use frame_support::{StorageLinkedMap, StorageValue};
use sp_std::vec::Vec;
use super::{CURRENT_VERSION, VersionNumber};
@@ -51,21 +51,21 @@ mod inner {
);
if let Err(e) = res {
support::print("Encountered error in migration of Staking::Nominators map.");
frame_support::print("Encountered error in migration of Staking::Nominators map.");
if e.is_none() {
support::print("Staking::Nominators map reinitialized");
frame_support::print("Staking::Nominators map reinitialized");
}
}
support::print("Finished migrating Staking storage to v1.");
frame_support::print("Finished migrating Staking storage to v1.");
}
pub(super) fn perform_migrations<T: Trait>() {
<Module<T> as Store>::StorageVersion::mutate(|version| {
if *version < MIN_SUPPORTED_VERSION {
support::print("Cannot migrate staking storage because version is less than\
frame_support::print("Cannot migrate staking storage because version is less than\
minimum.");
support::print(*version);
frame_support::print(*version);
return
}