Skip to content

Commit 9c8b0fc

Browse files
authored
Release koi-6641 (#1550)
1 parent 06a70ad commit 9c8b0fc

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

runtime/koi/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ pub const VERSION: sp_version::RuntimeVersion = sp_version::RuntimeVersion {
124124
spec_name: sp_runtime::create_runtime_str!("Darwinia Koi"),
125125
impl_name: sp_runtime::create_runtime_str!("DarwiniaOfficialRust"),
126126
authoring_version: 0,
127-
spec_version: 6_6_4_0,
127+
spec_version: 6_6_4_1,
128128
impl_version: 0,
129129
apis: RUNTIME_API_VERSIONS,
130130
transaction_version: 0,

runtime/koi/src/migration.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ impl frame_support::traits::OnRuntimeUpgrade for CustomOnRuntimeUpgrade {
4545
}
4646

4747
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)
5056
}

0 commit comments

Comments
 (0)