Skip to content

Commit 0eb56fa

Browse files
authored
Release koi-6654 (#1576)
1 parent e13e14b commit 0eb56fa

File tree

3 files changed

+8
-16
lines changed

3 files changed

+8
-16
lines changed

pallet/staking/src/lib.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ use frame_support::{
5959
};
6060
use frame_system::{pallet_prelude::*, RawOrigin};
6161
use pallet_session::ShouldEndSession as _;
62-
use sp_core::{H160, U256};
62+
use sp_core::H160;
6363
use sp_runtime::{
6464
traits::{AccountIdConversion, Convert, One, Zero},
6565
Perbill,
@@ -1154,6 +1154,8 @@ pub struct IndividualExposure<AccountId> {
11541154
}
11551155

11561156
/// RING staking interface.
1157+
///
1158+
/// .https://github.com/darwinia-network/DIP-7/blob/2249e3baa065b7e6c42427810b722fafa37628f1/src/collator/CollatorSet.sol#L27.
11571159
pub struct RingStaking<T>(PhantomData<T>);
11581160
impl<T> Election<T::AccountId> for RingStaking<T>
11591161
where
@@ -1186,7 +1188,7 @@ where
11861188
state_mutability: StateMutability::View,
11871189
};
11881190
let input = function
1189-
.encode_input(&[Token::Int(n.into())])
1191+
.encode_input(&[Token::Uint(n.into())])
11901192
.map_err(|e| log::error!("failed to encode input due to {e:?}"))
11911193
.ok()?;
11921194

@@ -1195,7 +1197,7 @@ where
11951197
rsc,
11961198
input,
11971199
Default::default(),
1198-
U256::from(10_000_000_u64),
1200+
1_000_000.into(),
11991201
)
12001202
.map_err(|e| log::error!("failed to forward call due to {e:?}"))
12011203
.ok()

runtime/koi/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ pub const VERSION: sp_version::RuntimeVersion = sp_version::RuntimeVersion {
8080
spec_name: sp_runtime::create_runtime_str!("Darwinia Koi"),
8181
impl_name: sp_runtime::create_runtime_str!("DarwiniaOfficialRust"),
8282
authoring_version: 0,
83-
spec_version: 6_6_5_3,
83+
spec_version: 6_6_5_4,
8484
impl_version: 0,
8585
apis: RUNTIME_API_VERSIONS,
8686
transaction_version: 0,

runtime/koi/src/migration.rs

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

4747
fn migrate() -> frame_support::weights::Weight {
48-
if let Ok(owner) =
49-
array_bytes::hex_n_into::<_, AccountId, 20>("0x7FAcDaFB282028E4B3264fB08cd633A9142514df")
50-
{
51-
let _ = <pallet_assets::Pallet<Runtime>>::transfer_ownership(
52-
RuntimeOrigin::signed(ROOT),
53-
codec::Compact(AssetIds::KKton as AssetId),
54-
owner,
55-
);
56-
}
57-
58-
// frame_support::weights::Weight::zero()
59-
<Runtime as frame_system::Config>::DbWeight::get().reads_writes(2, 2)
48+
frame_support::weights::Weight::zero()
49+
// <Runtime as frame_system::Config>::DbWeight::get().reads_writes(2, 2)
6050
}

0 commit comments

Comments
 (0)