File tree 3 files changed +11
-9
lines changed 3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -45,10 +45,13 @@ impl frame_support::traits::OnRuntimeUpgrade for CustomOnRuntimeUpgrade {
45
45
}
46
46
47
47
fn migrate ( ) -> frame_support:: weights:: Weight {
48
+ frame_support:: traits:: StorageVersion :: new ( 2 )
49
+ . put :: < cumulus_pallet_dmp_queue:: Pallet < Runtime > > ( ) ;
50
+
48
51
const KTON_DAO_VAULT_ADDR : & str = "0x652182C6aBc0bBE41b5702b05a26d109A405EAcA" ;
49
52
50
53
#[ cfg( feature = "try-runtime" ) ]
51
- assert ! ( array_bytes:: hex_n_into:: <_, _ , 20 >( KTON_DAO_VAULT_ADDR ) . is_ok( ) ) ;
54
+ assert ! ( array_bytes:: hex_n_into:: <_, AccountId , 20 >( KTON_DAO_VAULT_ADDR ) . is_ok( ) ) ;
52
55
53
56
if let Ok ( w) = array_bytes:: hex_n_into :: < _ , _ , 20 > ( KTON_DAO_VAULT_ADDR ) {
54
57
<darwinia_staking:: KtonRewardDistributionContract < Runtime > >:: put ( w) ;
Original file line number Diff line number Diff line change @@ -45,6 +45,9 @@ impl frame_support::traits::OnRuntimeUpgrade for CustomOnRuntimeUpgrade {
45
45
}
46
46
47
47
fn migrate ( ) -> frame_support:: weights:: Weight {
48
+ frame_support:: traits:: StorageVersion :: new ( 2 )
49
+ . put :: < cumulus_pallet_dmp_queue:: Pallet < Runtime > > ( ) ;
50
+
48
51
let _ = migration:: clear_storage_prefix (
49
52
b"BridgeKusamaGrandpa" ,
50
53
b"ImportedHeaders" ,
@@ -64,7 +67,7 @@ fn migrate() -> frame_support::weights::Weight {
64
67
const KTON_DAO_VAULT_ADDR : & str = "0x652182C6aBc0bBE41b5702b05a26d109A405EAcA" ;
65
68
66
69
#[ cfg( feature = "try-runtime" ) ]
67
- assert ! ( array_bytes:: hex_n_into:: <_, _ , 20 >( KTON_DAO_VAULT_ADDR ) . is_ok( ) ) ;
70
+ assert ! ( array_bytes:: hex_n_into:: <_, AccountId , 20 >( KTON_DAO_VAULT_ADDR ) . is_ok( ) ) ;
68
71
69
72
if let Ok ( w) = array_bytes:: hex_n_into :: < _ , _ , 20 > ( KTON_DAO_VAULT_ADDR ) {
70
73
<darwinia_staking:: KtonRewardDistributionContract < Runtime > >:: put ( w) ;
Original file line number Diff line number Diff line change @@ -45,13 +45,9 @@ impl frame_support::traits::OnRuntimeUpgrade for CustomOnRuntimeUpgrade {
45
45
}
46
46
47
47
fn migrate ( ) -> frame_support:: weights:: Weight {
48
- let n = migration_helper:: PalletCleaner {
49
- name : b"EthereumXcm" ,
50
- values : & [ b"Nonce" , b"EthereumXcmSuspended" ] ,
51
- maps : & [ ] ,
52
- }
53
- . remove_storage_values ( ) ;
48
+ frame_support:: traits:: StorageVersion :: new ( 2 )
49
+ . put :: < cumulus_pallet_dmp_queue:: Pallet < Runtime > > ( ) ;
54
50
55
51
// frame_support::weights::Weight::zero()
56
- <Runtime as frame_system:: Config >:: DbWeight :: get ( ) . reads_writes ( 0 , n )
52
+ <Runtime as frame_system:: Config >:: DbWeight :: get ( ) . reads_writes ( 0 , 1 )
57
53
}
You can’t perform that action at this time.
0 commit comments