mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 11:31:05 +00:00
Remove lingering runtime upgrades (#6476)
* Remove lingering runtime upgrades * remove unused warnings * remove tests
This commit is contained in:
@@ -26,7 +26,7 @@ use sp_runtime::traits::{
|
||||
StaticLookup, Member, LookupError, Zero, Saturating, AtLeast32Bit
|
||||
};
|
||||
use frame_support::{Parameter, decl_module, decl_error, decl_event, decl_storage, ensure};
|
||||
use frame_support::dispatch::{DispatchResult, Weight};
|
||||
use frame_support::dispatch::DispatchResult;
|
||||
use frame_support::traits::{Currency, ReservableCurrency, Get, BalanceStatus::Reserved};
|
||||
use frame_support::weights::constants::WEIGHT_PER_MICROS;
|
||||
use frame_system::{ensure_signed, ensure_root};
|
||||
@@ -104,16 +104,6 @@ decl_module! {
|
||||
pub struct Module<T: Trait> for enum Call where origin: T::Origin, system = frame_system {
|
||||
fn deposit_event() = default;
|
||||
|
||||
fn on_runtime_upgrade() -> Weight {
|
||||
use frame_support::migration::{StorageIterator, put_storage_value};
|
||||
for (key, value) in StorageIterator::<
|
||||
(T::AccountId, BalanceOf<T>)
|
||||
>::new(b"Indices", b"Accounts").drain() {
|
||||
put_storage_value(b"Indices", b"Accounts", &key, (value.0, value.1, false));
|
||||
}
|
||||
1_000_000_000
|
||||
}
|
||||
|
||||
/// Assign an previously unassigned index.
|
||||
///
|
||||
/// Payment: `Deposit` is reserved from the sender account.
|
||||
|
||||
Reference in New Issue
Block a user