difftreelog
feat remove rmrk leftovers migration
in: master
3 files changed
Cargo.lockdiffbeforeafterboth--- a/Cargo.lock
+++ b/Cargo.lock
@@ -6272,6 +6272,7 @@
"parity-scale-codec",
"scale-info",
"sp-core",
+ "sp-io",
"sp-std",
]
pallets/evm-migration/Cargo.tomldiffbeforeafterboth--- a/pallets/evm-migration/Cargo.toml
+++ b/pallets/evm-migration/Cargo.toml
@@ -16,9 +16,10 @@
scale-info = { workspace = true }
sp-core = { workspace = true }
sp-std = { workspace = true }
+sp-io = { workspace = true }
[features]
default = ["runtime-benchmarks", "std"]
runtime-benchmarks = ["frame-benchmarking"]
-std = ["frame-benchmarking/std", "frame-support/std", "frame-system/std", "pallet-evm/std", "sp-core/std", "sp-std/std"]
+std = ["frame-benchmarking/std", "frame-support/std", "frame-system/std", "pallet-evm/std", "sp-core/std", "sp-std/std", "sp-io/std"]
try-runtime = ["frame-support/try-runtime"]
pallets/evm-migration/src/lib.rsdiffbeforeafterboth150 Ok(())150 Ok(())151 }151 }152153 /// Remove remark compatibility data leftovers154 #[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 }153164154 /// Implements [`pallet_evm::OnMethodCall`], which reserves accounts with pending migration165 /// Implements [`pallet_evm::OnMethodCall`], which reserves accounts with pending migration