File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ pub const VERSION: sp_version::RuntimeVersion = sp_version::RuntimeVersion {
124
124
spec_name : sp_runtime:: create_runtime_str!( "Darwinia Koi" ) ,
125
125
impl_name : sp_runtime:: create_runtime_str!( "DarwiniaOfficialRust" ) ,
126
126
authoring_version : 0 ,
127
- spec_version : 6_6_4_0 ,
127
+ spec_version : 6_6_4_1 ,
128
128
impl_version : 0 ,
129
129
apis : RUNTIME_API_VERSIONS ,
130
130
transaction_version : 0 ,
Original file line number Diff line number Diff line change @@ -45,6 +45,12 @@ impl frame_support::traits::OnRuntimeUpgrade for CustomOnRuntimeUpgrade {
45
45
}
46
46
47
47
fn migrate ( ) -> frame_support:: weights:: Weight {
48
- frame_support:: weights:: Weight :: zero ( )
49
- // <Runtime as frame_system::Config>::DbWeight::get().reads_writes(10, 10)
48
+ if let Ok ( addr) =
49
+ array_bytes:: hex_n_into :: < _ , AccountId , 20 > ( "0xf1b4f3D438eE2B363C5ba1641A498709ff5780bA" )
50
+ {
51
+ <darwinia_staking:: KtonRewardDistributionContract < Runtime > >:: put ( addr) ;
52
+ }
53
+
54
+ // frame_support::weights::Weight::zero()
55
+ <Runtime as frame_system:: Config >:: DbWeight :: get ( ) . reads_writes ( 0 , 1 )
50
56
}
You can’t perform that action at this time.
0 commit comments