Skip to content

Commit

Permalink
Merge pull request #55 from cartridge-gg/addseedback
Browse files Browse the repository at this point in the history
Add back seed katana config
  • Loading branch information
tarrencev authored May 31, 2024
2 parents b85691e + 5b9ca0b commit 6d3ed8c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/command/deployments/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ impl CreateArgs {
block_time: config.block_time,
fork_rpc_url: config.fork_rpc_url.clone(),
fork_block_number: config.fork_block_number,
seed: None,
seed: Some(match &config.seed {
Some(seed) => seed.clone(),
None => rand::random::<u64>().to_string(),
}),
accounts: config.accounts,
disable_fee: config.disable_fee,
gas_price: config.gas_price,
Expand Down
4 changes: 4 additions & 0 deletions src/command/deployments/services/katana.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ pub struct KatanaCreateArgs {
#[arg(help = "Fork block number.")]
pub fork_block_number: Option<u64>,

#[arg(long, short, value_name = "seed")]
#[arg(help = "Seed.")]
pub seed: Option<String>,

#[arg(long, short, value_name = "accounts")]
#[arg(help = "Accounts.")]
pub accounts: Option<i64>,
Expand Down

0 comments on commit 6d3ed8c

Please sign in to comment.