Change pallet naming in test-runtime (#3551)

* Change pallet naming in test-runtime

This is required to make the `well_know_keys::ACTIVE_CONFIG` match the
`ActiveConfig` key.

* Use correct name

* 🤦
This commit is contained in:
Bastian Köcher
2021-08-02 12:54:54 +02:00
committed by GitHub
parent ff5d56fb76
commit 2cfda98aca
3 changed files with 14 additions and 2 deletions
@@ -765,6 +765,18 @@ pub mod pallet {
Ok(())
}
}
#[pallet::hooks]
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {
fn integrity_test() {
assert_eq!(
&ActiveConfig::<T>::hashed_key(),
primitives::v1::well_known_keys::ACTIVE_CONFIG,
"`well_known_keys::ACTIVE_CONFIG` doesn't match key of `ActiveConfig`! Make sure that the name of the\
configuration pallet is `Configuration` in the runtime!",
);
}
}
}
impl<T: Config> Pallet<T> {