Skip to content

Commit

Permalink
relay upgrade to start migration
Browse files Browse the repository at this point in the history
  • Loading branch information
joepetrowski committed Mar 6, 2024
1 parent a5a7836 commit 0aceda8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,7 @@ fn assert_reap_id_relay(total_deposit: Balance, id: &Identity) {

assert_ok!(KusamaIdentityMigrator::reap_identity(
// Note: Root for launch testing, Signed once we open migrations.
KusamaOrigin::root(),
// KusamaOrigin::signed(KusamaRelaySender::get()),
KusamaOrigin::signed(KusamaRelaySender::get()),
KusamaRelaySender::get()
));

Expand Down
7 changes: 3 additions & 4 deletions relay/kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ use frame_support::{
weights::{ConstantMultiplier, WeightMeter},
PalletId,
};
use frame_system::EnsureRoot;
use frame_system::{EnsureRoot, EnsureSigned};
use pallet_grandpa::{fg_primitives, AuthorityId as GrandpaId};
use pallet_identity::legacy::IdentityInfo;
use pallet_session::historical as session_historical;
Expand Down Expand Up @@ -161,7 +161,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("kusama"),
impl_name: create_runtime_str!("parity-kusama"),
authoring_version: 2,
spec_version: 1_002_000,
spec_version: 1_002_001,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 25,
Expand Down Expand Up @@ -1001,8 +1001,7 @@ impl pallet_identity::Config for Runtime {

impl identity_migrator::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
// To be updated to `EnsureSigned` once the parachain is producing blocks.
type Reaper = EnsureRoot<AccountId>;
type Reaper = EnsureSigned<AccountId>;
type ReapIdentityHandler = ToParachainIdentityReaper<Runtime, Self::AccountId>;
type WeightInfo = weights::runtime_common_identity_migrator::WeightInfo<Runtime>;
}
Expand Down

0 comments on commit 0aceda8

Please sign in to comment.