Skip to content

Commit

Permalink
addressing comments from iulian
Browse files Browse the repository at this point in the history
  • Loading branch information
seemantaggarwal committed Jan 11, 2025
1 parent 65f93a4 commit 318d589
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
3 changes: 3 additions & 0 deletions templates/parachain/README.docify.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<div align="center">

[cfg(all(doc, feature = "generate-readme"))]
compile_markdown!("README.docify.md", "README.md");

# Polkadot SDK's Parachain Template

<img height="70px" alt="Polkadot SDK Logo" src="https://github.com/paritytech/polkadot-sdk/raw/master/docs/images/Polkadot_Logo_Horizontal_Pink_White.png#gh-dark-mode-only"/>
Expand Down
11 changes: 4 additions & 7 deletions templates/parachain/runtime/src/genesis_config_presets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ use alloc::{vec, vec::Vec};

use polkadot_sdk::{staging_xcm as xcm, *};

#[doc::include_str!("../../README.md")]
#[cfg(feature = "generate-readme")]

docify::compile_markdown!("../..","../..");
docify::compile_markdown!("../../README.docify.md","../../README.md");

use docify::{export, export_content};

Expand All @@ -24,7 +22,6 @@ use sp_keyring::Sr25519Keyring;
/// The default XCM version to set in genesis config.
const SAFE_XCM_VERSION: u32 = xcm::prelude::XCM_VERSION;
/// Parachain id used for genesis config presets of parachain template.
#[export]
pub const PARACHAIN_ID: u32 = 2000;

/// Generate the session keys from individual elements.
Expand All @@ -33,9 +30,9 @@ pub const PARACHAIN_ID: u32 = 2000;
pub fn template_session_keys(keys: AuraId) -> SessionKeys {
SessionKeys { aura: keys }
}
#[docify::export(name = "get_parachain_id")]
pub fn get_parachain_id() -> u32 {
PARACHAIN_ID
#[export(name = "get_parachain_id")]
const fn get_parachain_id() -> u32 {
1000
}

fn testnet_genesis(
Expand Down

0 comments on commit 318d589

Please sign in to comment.