Make export-genesis-wasm output hex (#236)

* Add --raw flag to export-genesis-state

* Switch export-genesis-wasm to hex by default

Also add --raw flag. This makes it similar to `export-genesis-state`.
This commit is contained in:
Sergei Shulepov
2020-11-11 20:27:35 +01:00
committed by GitHub
parent e6999e97cc
commit 8835ef8239
2 changed files with 24 additions and 6 deletions
+8
View File
@@ -63,6 +63,10 @@ pub struct ExportGenesisStateCommand {
#[structopt(long, default_value = "100")]
pub parachain_id: u32,
/// Write output in binary. Default is to write in hex.
#[structopt(short, long)]
pub raw: bool,
/// The name of the chain for that the genesis state should be exported.
#[structopt(long)]
pub chain: Option<String>,
@@ -75,6 +79,10 @@ pub struct ExportGenesisWasmCommand {
#[structopt(parse(from_os_str))]
pub output: Option<PathBuf>,
/// Write output in binary. Default is to write in hex.
#[structopt(short, long)]
pub raw: bool,
/// The name of the chain for that the genesis wasm file should be exported.
#[structopt(long)]
pub chain: Option<String>,