difftreelog
fix unused `on_runtime_upgrade()` was removed
in: master
- AppPromo - Common - NonFungible
10 files changed
Cargo.lockdiffbeforeafterboth599659965997[[package]]5997[[package]]5998name = "pallet-app-promotion"5998name = "pallet-app-promotion"5999version = "0.1.5"5999version = "0.1.6"6000dependencies = [6000dependencies = [6001 "frame-benchmarking",6001 "frame-benchmarking",6002 "frame-support",6002 "frame-support",626262626263[[package]]6263[[package]]6264name = "pallet-common"6264name = "pallet-common"6265version = "0.1.13"6265version = "0.1.14"6266dependencies = [6266dependencies = [6267 "ethereum",6267 "ethereum",6268 "evm-coder",6268 "evm-coder",681468146815[[package]]6815[[package]]6816name = "pallet-nonfungible"6816name = "pallet-nonfungible"6817version = "0.1.13"6817version = "0.1.14"6818dependencies = [6818dependencies = [6819 "evm-coder",6819 "evm-coder",6820 "frame-benchmarking",6820 "frame-benchmarking",pallets/app-promotion/CHANGELOG.mddiffbeforeafterboth3All notable changes to this project will be documented in this file.3All notable changes to this project will be documented in this file.445<!-- bureaucrate goes here -->5<!-- bureaucrate goes here -->6## [0.1.6] - 2023-04-19678- ### Fixed910- Useless `on_runtime_upgrade()` has been removed117## [0.1.5] - 2023-02-1412## [0.1.5] - 2023-02-148139### Added14### Addedpallets/app-promotion/Cargo.tomldiffbeforeafterboth9license = 'GPLv3'9license = 'GPLv3'10name = 'pallet-app-promotion'10name = 'pallet-app-promotion'11repository = 'https://github.com/UniqueNetwork/unique-chain'11repository = 'https://github.com/UniqueNetwork/unique-chain'12version = '0.1.5'12version = '0.1.6'131314[package.metadata.docs.rs]14[package.metadata.docs.rs]15targets = ['x86_64-unknown-linux-gnu']15targets = ['x86_64-unknown-linux-gnu']pallets/app-promotion/src/lib.rsdiffbeforeafterboth263 pub type PreviousCalculatedRecord<T: Config> =263 pub type PreviousCalculatedRecord<T: Config> =264 StorageValue<Value = (T::AccountId, T::BlockNumber), QueryKind = OptionQuery>;264 StorageValue<Value = (T::AccountId, T::BlockNumber), QueryKind = OptionQuery>;265266 #[pallet::storage]267 pub(crate) type UpgradedToReserves<T: Config> =268 StorageValue<Value = bool, QueryKind = ValueQuery>;269265270 #[pallet::hooks]266 #[pallet::hooks]271 impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {267 impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {291 <T as Config>::WeightInfo::on_initialize(counter)287 <T as Config>::WeightInfo::on_initialize(counter)292 }288 }293294 fn on_runtime_upgrade() -> Weight {295 <UpgradedToReserves<T>>::kill();296297 T::DbWeight::get().reads_writes(0, 1)298 }299 }289 }300290301 #[pallet::call]291 #[pallet::call]pallets/common/CHANGELOG.mddiffbeforeafterboth3All notable changes to this project will be documented in this file.3All notable changes to this project will be documented in this file.445<!-- bureaucrate goes here -->5<!-- bureaucrate goes here -->6## [0.1.14] - 2023-04-19678- ### Fixed910- Useless `on_runtime_upgrade()` has been removed117## [0.1.13] - 2023-01-2012## [0.1.13] - 2023-01-208139### Changed14### Changed76However, we don't use prefix removal limits, so upgrade is81However, we don't use prefix removal limits, so upgrade is77straightforward82straightforward788379Upstream-Change: https://github.com/paritytech/substrate/pull/1149084Upstream-Change: <https://github.com/paritytech/substrate/pull/11490>808581- build: Upgrade polkadot to v0.9.25 cdfb9bdc7b205ff1b5134f034ef9973d769e5e6b86- build: Upgrade polkadot to v0.9.25 cdfb9bdc7b205ff1b5134f034ef9973d769e5e6b8287pallets/common/Cargo.tomldiffbeforeafterboth2edition = "2021"2edition = "2021"3license = "GPLv3"3license = "GPLv3"4name = "pallet-common"4name = "pallet-common"5version = "0.1.13"5version = "0.1.14"667[dependencies]7[dependencies]8# Note: `package = "parity-scale-codec"` must be supplied since the `Encode` macro searches for it.8# Note: `package = "parity-scale-codec"` must be supplied since the `Encode` macro searches for it.pallets/common/src/lib.rsdiffbeforeafterboth870 QueryKind = OptionQuery,870 QueryKind = OptionQuery,871 >;871 >;872873 #[pallet::hooks]874 impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {875 fn on_runtime_upgrade() -> Weight {876 StorageVersion::new(1).put::<Pallet<T>>();877878 Weight::zero()879 }880 }881}872}882873883impl<T: Config> Pallet<T> {874impl<T: Config> Pallet<T> {pallets/nonfungible/CHANGELOG.mddiffbeforeafterboth3All notable changes to this project will be documented in this file.3All notable changes to this project will be documented in this file.445<!-- bureaucrate goes here -->5<!-- bureaucrate goes here -->6## [0.1.14] - 2023-04-19678- ### Fixed910- Useless `on_runtime_upgrade()` has been removed117## [0.1.13] - 2023-01-2012## [0.1.13] - 2023-01-208139### Fixed14### Fixed77However, we don't use prefix removal limits, so upgrade is82However, we don't use prefix removal limits, so upgrade is78straightforward83straightforward798480Upstream-Change: https://github.com/paritytech/substrate/pull/1149085Upstream-Change: <https://github.com/paritytech/substrate/pull/11490>818682- build: Upgrade polkadot to v0.9.25 cdfb9bdc7b205ff1b5134f034ef9973d769e5e6b87- build: Upgrade polkadot to v0.9.25 cdfb9bdc7b205ff1b5134f034ef9973d769e5e6b8388pallets/nonfungible/Cargo.tomldiffbeforeafterboth2edition = "2021"2edition = "2021"3license = "GPLv3"3license = "GPLv3"4name = "pallet-nonfungible"4name = "pallet-nonfungible"5version = "0.1.13"5version = "0.1.14"667[dependencies]7[dependencies]8# Note: `package = "parity-scale-codec"` must be supplied since the `Encode` macro searches for it.8# Note: `package = "parity-scale-codec"` must be supplied since the `Encode` macro searches for it.pallets/nonfungible/src/lib.rsdiffbeforeafterboth282 QueryKind = ValueQuery,282 QueryKind = ValueQuery,283 >;283 >;284285 /// Upgrade from the old schema to properties.286 #[pallet::hooks]287 impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {288 fn on_runtime_upgrade() -> Weight {289 StorageVersion::new(1).put::<Pallet<T>>();290291 Weight::zero()292 }293 }294}284}295285296pub struct NonfungibleHandle<T: Config>(pallet_common::CollectionHandle<T>);286pub struct NonfungibleHandle<T: Config>(pallet_common::CollectionHandle<T>);