File tree 2 files changed +10
-2
lines changed 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -45,10 +45,14 @@ impl frame_support::traits::OnRuntimeUpgrade for CustomOnRuntimeUpgrade {
45
45
}
46
46
47
47
fn migrate ( ) -> frame_support:: weights:: Weight {
48
+ // Migrate the storage version.
49
+ frame_support:: traits:: StorageVersion :: new ( 2 )
50
+ . put :: < cumulus_pallet_dmp_queue:: Pallet < Runtime > > ( ) ;
51
+
48
52
const KTON_DAO_VAULT_ADDR : & str = "0x652182C6aBc0bBE41b5702b05a26d109A405EAcA" ;
49
53
50
54
#[ cfg( feature = "try-runtime" ) ]
51
- assert ! ( array_bytes:: hex_n_into:: <_, _ , 20 >( KTON_DAO_VAULT_ADDR ) . is_ok( ) ) ;
55
+ assert ! ( array_bytes:: hex_n_into:: <_, AccountId , 20 >( KTON_DAO_VAULT_ADDR ) . is_ok( ) ) ;
52
56
53
57
if let Ok ( w) = array_bytes:: hex_n_into :: < _ , _ , 20 > ( KTON_DAO_VAULT_ADDR ) {
54
58
<darwinia_staking:: KtonRewardDistributionContract < Runtime > >:: put ( w) ;
Original file line number Diff line number Diff line change @@ -45,6 +45,10 @@ impl frame_support::traits::OnRuntimeUpgrade for CustomOnRuntimeUpgrade {
45
45
}
46
46
47
47
fn migrate ( ) -> frame_support:: weights:: Weight {
48
+ // Migrate the storage version.
49
+ frame_support:: traits:: StorageVersion :: new ( 2 )
50
+ . put :: < cumulus_pallet_dmp_queue:: Pallet < Runtime > > ( ) ;
51
+
48
52
let _ = migration:: clear_storage_prefix (
49
53
b"BridgeKusamaGrandpa" ,
50
54
b"ImportedHeaders" ,
@@ -64,7 +68,7 @@ fn migrate() -> frame_support::weights::Weight {
64
68
const KTON_DAO_VAULT_ADDR : & str = "0x652182C6aBc0bBE41b5702b05a26d109A405EAcA" ;
65
69
66
70
#[ cfg( feature = "try-runtime" ) ]
67
- assert ! ( array_bytes:: hex_n_into:: <_, _ , 20 >( KTON_DAO_VAULT_ADDR ) . is_ok( ) ) ;
71
+ assert ! ( array_bytes:: hex_n_into:: <_, AccountId , 20 >( KTON_DAO_VAULT_ADDR ) . is_ok( ) ) ;
68
72
69
73
if let Ok ( w) = array_bytes:: hex_n_into :: < _ , _ , 20 > ( KTON_DAO_VAULT_ADDR ) {
70
74
<darwinia_staking:: KtonRewardDistributionContract < Runtime > >:: put ( w) ;
You can’t perform that action at this time.
0 commit comments