From 5b9ca0b91a4aef512f10b2e63016bf090d243d1d Mon Sep 17 00:00:00 2001 From: Tarrence van As Date: Fri, 31 May 2024 16:20:38 -0400 Subject: [PATCH] Add back seed katana config --- src/command/deployments/create.rs | 5 ++++- src/command/deployments/services/katana.rs | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/command/deployments/create.rs b/src/command/deployments/create.rs index 292c753..edfb41b 100644 --- a/src/command/deployments/create.rs +++ b/src/command/deployments/create.rs @@ -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::().to_string(), + }), accounts: config.accounts, disable_fee: config.disable_fee, gas_price: config.gas_price, diff --git a/src/command/deployments/services/katana.rs b/src/command/deployments/services/katana.rs index 4c8f7ff..c9d0b0b 100644 --- a/src/command/deployments/services/katana.rs +++ b/src/command/deployments/services/katana.rs @@ -23,6 +23,10 @@ pub struct KatanaCreateArgs { #[arg(help = "Fork block number.")] pub fork_block_number: Option, + #[arg(long, short, value_name = "seed")] + #[arg(help = "Seed.")] + pub seed: Option, + #[arg(long, short, value_name = "accounts")] #[arg(help = "Accounts.")] pub accounts: Option,