mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 08:41:02 +00:00
Fix export genesis command (#395)
This commit is contained in:
@@ -60,8 +60,10 @@ pub struct ExportGenesisStateCommand {
|
|||||||
pub output: Option<PathBuf>,
|
pub output: Option<PathBuf>,
|
||||||
|
|
||||||
/// Id of the parachain this state is for.
|
/// Id of the parachain this state is for.
|
||||||
#[structopt(long, default_value = "100", conflicts_with = "chain")]
|
///
|
||||||
pub parachain_id: u32,
|
/// Default: 100
|
||||||
|
#[structopt(long, conflicts_with = "chain")]
|
||||||
|
pub parachain_id: Option<u32>,
|
||||||
|
|
||||||
/// Write output in binary. Default is to write in hex.
|
/// Write output in binary. Default is to write in hex.
|
||||||
#[structopt(short, long)]
|
#[structopt(short, long)]
|
||||||
|
|||||||
@@ -241,7 +241,7 @@ pub fn run() -> Result<()> {
|
|||||||
|
|
||||||
let block: Block = generate_genesis_block(&load_spec(
|
let block: Block = generate_genesis_block(&load_spec(
|
||||||
¶ms.chain.clone().unwrap_or_default(),
|
¶ms.chain.clone().unwrap_or_default(),
|
||||||
params.parachain_id.into(),
|
params.parachain_id.unwrap_or(100).into(),
|
||||||
)?)?;
|
)?)?;
|
||||||
let raw_header = block.header().encode();
|
let raw_header = block.header().encode();
|
||||||
let output_buf = if params.raw {
|
let output_buf = if params.raw {
|
||||||
|
|||||||
Reference in New Issue
Block a user