Skip to content

Commit

Permalink
Release koi-6641 (#1550)
Browse files Browse the repository at this point in the history
  • Loading branch information
AurevoirXavier authored Jul 25, 2024
1 parent 06a70ad commit 9c8b0fc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion runtime/koi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ pub const VERSION: sp_version::RuntimeVersion = sp_version::RuntimeVersion {
spec_name: sp_runtime::create_runtime_str!("Darwinia Koi"),
impl_name: sp_runtime::create_runtime_str!("DarwiniaOfficialRust"),
authoring_version: 0,
spec_version: 6_6_4_0,
spec_version: 6_6_4_1,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 0,
Expand Down
10 changes: 8 additions & 2 deletions runtime/koi/src/migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ impl frame_support::traits::OnRuntimeUpgrade for CustomOnRuntimeUpgrade {
}

fn migrate() -> frame_support::weights::Weight {
frame_support::weights::Weight::zero()
// <Runtime as frame_system::Config>::DbWeight::get().reads_writes(10, 10)
if let Ok(addr) =
array_bytes::hex_n_into::<_, AccountId, 20>("0xf1b4f3D438eE2B363C5ba1641A498709ff5780bA")
{
<darwinia_staking::KtonRewardDistributionContract<Runtime>>::put(addr);
}

// frame_support::weights::Weight::zero()
<Runtime as frame_system::Config>::DbWeight::get().reads_writes(0, 1)
}

0 comments on commit 9c8b0fc

Please sign in to comment.