Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
refactor(asset-hub): change aura to sr25519
Browse files Browse the repository at this point in the history
Eliminates the workarounds needed for asset hub on polkadot (ed25519).
  • Loading branch information
evilrobot-01 committed Aug 9, 2024
1 parent ebb9874 commit b55c51d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions chain-spec-generator/src/system_parachains_specs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

use crate::common::{get_account_id_from_seed, get_from_seed, testnet_accounts};
use cumulus_primitives_core::ParaId;
use parachains_common::{AccountId, AssetHubPolkadotAuraId, AuraId, Balance};
use parachains_common::{AccountId, AuraId, Balance};
use sc_chain_spec::{ChainSpec, ChainSpecExtension, ChainSpecGroup, ChainType};
use serde::{Deserialize, Serialize};
use sp_core::sr25519;
Expand Down Expand Up @@ -52,15 +52,15 @@ pub fn invulnerables() -> Vec<(AccountId, AuraId)> {
}

/// Invulnerable Collators for the particular case of AssetHubPolkadot
pub fn invulnerables_asset_hub_paseo() -> Vec<(AccountId, AssetHubPolkadotAuraId)> {
pub fn invulnerables_asset_hub_paseo() -> Vec<(AccountId, AuraId)> {
vec![
(
get_account_id_from_seed::<sr25519::Public>("Alice"),
get_from_seed::<AssetHubPolkadotAuraId>("Alice"),
get_from_seed::<AuraId>("Alice"),
),
(
get_account_id_from_seed::<sr25519::Public>("Bob"),
get_from_seed::<AssetHubPolkadotAuraId>("Bob"),
get_from_seed::<AuraId>("Bob"),
),
]
}
Expand All @@ -69,7 +69,7 @@ pub fn invulnerables_asset_hub_paseo() -> Vec<(AccountId, AssetHubPolkadotAuraId
///
/// The input must be a tuple of individual keys (a single arg for now since we have just one key).
pub fn asset_hub_paseo_session_keys(
keys: AssetHubPolkadotAuraId,
keys: AuraId,
) -> asset_hub_paseo_runtime::SessionKeys {
asset_hub_paseo_runtime::SessionKeys { aura: keys }
}
Expand All @@ -83,7 +83,7 @@ pub fn bridge_hub_paseo_session_keys(keys: AuraId) -> bridge_hub_paseo_runtime::

// AssetHubPaseo
fn asset_hub_paseo_genesis(
invulnerables: Vec<(AccountId, AssetHubPolkadotAuraId)>,
invulnerables: Vec<(AccountId, AuraId)>,
endowed_accounts: Vec<AccountId>,
id: ParaId,
) -> serde_json::Value {
Expand Down
2 changes: 1 addition & 1 deletion system-parachains/asset-hub-paseo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ use frame_system::{
};
use pallet_nfts::PalletFeatures;
use parachains_common::{
message_queue::*, AccountId, AssetHubPolkadotAuraId as AuraId, AssetIdForTrustBackedAssets,
message_queue::*, AccountId, AuraId, AssetIdForTrustBackedAssets,
Balance, BlockNumber, Hash, Header, Nonce, Signature,
};

Expand Down

0 comments on commit b55c51d

Please sign in to comment.