File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
pallets/subtensor/src/migrations Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ use alloc::string::String;
3
3
use frame_support:: IterableStorageMap ;
4
4
use frame_support:: { traits:: Get , weights:: Weight } ;
5
5
use sp_runtime:: format;
6
+ use substrate_fixed:: types:: I96F32 ;
6
7
use substrate_fixed:: types:: U64F64 ;
7
8
8
9
use super :: * ;
@@ -88,6 +89,7 @@ pub fn migrate_rao<T: Config>() -> Weight {
88
89
89
90
let remaining_lock = lock. saturating_sub ( pool_initial_tao) ;
90
91
// Refund the owner for the remaining lock.
92
+ SubnetMovingPrice :: < T > :: insert ( netuid, I96F32 :: from_num ( EmissionValues :: < T > :: get ( netuid) ) ) ;
91
93
Pallet :: < T > :: add_balance_to_coldkey_account ( & owner, remaining_lock) ;
92
94
SubnetLocked :: < T > :: insert ( netuid, 0 ) ; // Clear lock amount.
93
95
SubnetTAO :: < T > :: insert ( netuid, pool_initial_tao) ;
Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
229
229
// `spec_version`, and `authoring_version` are the same between Wasm and native.
230
230
// This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use
231
231
// the compatible custom types.
232
- spec_version : 231 ,
232
+ spec_version : 232 ,
233
233
impl_version : 1 ,
234
234
apis : RUNTIME_API_VERSIONS ,
235
235
transaction_version : 1 ,
You can’t perform that action at this time.
0 commit comments