@@ -26,7 +26,7 @@ use sp_runtime::traits::{
26
26
StaticLookup , Member , LookupError , Zero , Saturating , AtLeast32Bit
27
27
} ;
28
28
use frame_support:: { Parameter , decl_module, decl_error, decl_event, decl_storage, ensure} ;
29
- use frame_support:: dispatch:: { DispatchResult , Weight } ;
29
+ use frame_support:: dispatch:: DispatchResult ;
30
30
use frame_support:: traits:: { Currency , ReservableCurrency , Get , BalanceStatus :: Reserved } ;
31
31
use frame_support:: weights:: constants:: WEIGHT_PER_MICROS ;
32
32
use frame_system:: { ensure_signed, ensure_root} ;
@@ -104,16 +104,6 @@ decl_module! {
104
104
pub struct Module <T : Trait > for enum Call where origin: T :: Origin , system = frame_system {
105
105
fn deposit_event( ) = default ;
106
106
107
- fn on_runtime_upgrade( ) -> Weight {
108
- use frame_support:: migration:: { StorageIterator , put_storage_value} ;
109
- for ( key, value) in StorageIterator :: <
110
- ( T :: AccountId , BalanceOf <T >)
111
- >:: new( b"Indices" , b"Accounts" ) . drain( ) {
112
- put_storage_value( b"Indices" , b"Accounts" , & key, ( value. 0 , value. 1 , false ) ) ;
113
- }
114
- 1_000_000_000
115
- }
116
-
117
107
/// Assign an previously unassigned index.
118
108
///
119
109
/// Payment: `Deposit` is reserved from the sender account.
0 commit comments