git.delta.rocks / unique-network / refs/commits / 98c55c3ef587

difftreelog

feat remove rmrk leftovers migration

Yaroslav Bolyukin2023-02-15parent: #ae022a5.patch.diff
in: master

3 files changed

modifiedCargo.lockdiffbeforeafterboth
6272 "parity-scale-codec",6272 "parity-scale-codec",
6273 "scale-info",6273 "scale-info",
6274 "sp-core",6274 "sp-core",
6275 "sp-io",
6275 "sp-std",6276 "sp-std",
6276]6277]
62776278
modifiedpallets/evm-migration/Cargo.tomldiffbeforeafterboth
16scale-info = { workspace = true }16scale-info = { workspace = true }
17sp-core = { workspace = true }17sp-core = { workspace = true }
18sp-std = { workspace = true }18sp-std = { workspace = true }
19sp-io = { workspace = true }
1920
20[features]21[features]
21default = ["runtime-benchmarks", "std"]22default = ["runtime-benchmarks", "std"]
22runtime-benchmarks = ["frame-benchmarking"]23runtime-benchmarks = ["frame-benchmarking"]
23std = ["frame-benchmarking/std", "frame-support/std", "frame-system/std", "pallet-evm/std", "sp-core/std", "sp-std/std"]24std = ["frame-benchmarking/std", "frame-support/std", "frame-system/std", "pallet-evm/std", "sp-core/std", "sp-std/std", "sp-io/std"]
24try-runtime = ["frame-support/try-runtime"]25try-runtime = ["frame-support/try-runtime"]
2526
modifiedpallets/evm-migration/src/lib.rsdiffbeforeafterboth
150 Ok(())150 Ok(())
151 }151 }
152
153 /// Remove remark compatibility data leftovers
154 #[pallet::call_index(5)]
155 #[pallet::weight(<T as frame_system::Config>::DbWeight::get().reads_writes(10, 10))]
156 pub fn remove_rmrk_data(origin: OriginFor<T>) -> DispatchResult {
157 use sp_io::hashing::twox_128;
158 ensure_root(origin)?;
159 let _ = sp_io::storage::clear_prefix(&twox_128(b"RmrkEquip"), Some(5));
160 let _ = sp_io::storage::clear_prefix(&twox_128(b"RmrkCore"), Some(5));
161 Ok(())
162 }
152 }163 }
153164
154 /// Implements [`pallet_evm::OnMethodCall`], which reserves accounts with pending migration165 /// Implements [`pallet_evm::OnMethodCall`], which reserves accounts with pending migration