mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 16:21:02 +00:00
Remove use of Store trait (#6835)
* Remove use of Store trait from runtime directory
* Remove Store trait usage from xcm directory
* Run cargo fmt
* update lockfile for {"substrate"}
---------
Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -157,7 +157,6 @@ pub mod pallet {
|
||||
}
|
||||
|
||||
#[pallet::pallet]
|
||||
#[pallet::generate_store(pub(super) trait Store)]
|
||||
#[pallet::storage_version(migration::STORAGE_VERSION)]
|
||||
#[pallet::without_storage_info]
|
||||
pub struct Pallet<T>(_);
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Polkadot. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
use crate::{Config, Pallet, Store};
|
||||
use crate::{Config, Pallet, VersionNotifyTargets};
|
||||
use frame_support::{
|
||||
pallet_prelude::*,
|
||||
traits::{OnRuntimeUpgrade, StorageVersion},
|
||||
@@ -48,7 +48,7 @@ pub mod v1 {
|
||||
Some(translated)
|
||||
};
|
||||
|
||||
<Pallet<T> as Store>::VersionNotifyTargets::translate_values(translate);
|
||||
VersionNotifyTargets::<T>::translate_values(translate);
|
||||
|
||||
log::info!("v1 applied successfully");
|
||||
STORAGE_VERSION.put::<Pallet<T>>();
|
||||
|
||||
@@ -51,7 +51,6 @@ pub mod pallet_test_notifier {
|
||||
use xcm::latest::prelude::*;
|
||||
|
||||
#[pallet::pallet]
|
||||
#[pallet::generate_store(pub(super) trait Store)]
|
||||
pub struct Pallet<T>(_);
|
||||
|
||||
#[pallet::config]
|
||||
|
||||
Reference in New Issue
Block a user