From c81279fc8f1b69efd579dcb9461081b37cf83cdf Mon Sep 17 00:00:00 2001 From: Omar Abdulla Date: Tue, 22 Jul 2025 14:37:02 +0300 Subject: [PATCH] Correct the arguments --- crates/config/src/lib.rs | 2 +- crates/format/src/case.rs | 14 -------------- crates/format/src/input.rs | 2 +- 3 files changed, 2 insertions(+), 16 deletions(-) diff --git a/crates/config/src/lib.rs b/crates/config/src/lib.rs index 9cc51df..61211ad 100644 --- a/crates/config/src/lib.rs +++ b/crates/config/src/lib.rs @@ -76,7 +76,7 @@ pub struct Arguments { /// This argument controls which private keys the nodes should have access to and be added to /// its wallet signers. With a value of N, private keys (0, N] will be added to the signer set /// of the node. - #[arg(short, long = "account", default_value_t = 30)] + #[arg(short, long = "private-keys-count", default_value_t = 30)] pub private_keys_to_add: usize, /// The differential testing leader node implementation. diff --git a/crates/format/src/case.rs b/crates/format/src/case.rs index 998c1d8..29e4ef5 100644 --- a/crates/format/src/case.rs +++ b/crates/format/src/case.rs @@ -3,7 +3,6 @@ use serde::Deserialize; use crate::{ define_wrapper_type, input::{Expected, Input}, - metadata::AddressReplacementMap, mode::Mode, }; @@ -41,19 +40,6 @@ impl Case { } }) } - - pub fn handle_address_replacement( - &mut self, - old_to_new_mapping: &mut AddressReplacementMap, - ) -> anyhow::Result<()> { - for input in self.inputs.iter_mut() { - input.handle_address_replacement(old_to_new_mapping)?; - } - if let Some(ref mut expected) = self.expected { - expected.handle_address_replacement(old_to_new_mapping)?; - } - Ok(()) - } } define_wrapper_type!( diff --git a/crates/format/src/input.rs b/crates/format/src/input.rs index ad59177..0420f63 100644 --- a/crates/format/src/input.rs +++ b/crates/format/src/input.rs @@ -324,7 +324,7 @@ pub const fn default_caller() -> Address { /// This piece of code is taken from the matter-labs-tester repository which is licensed under MIT /// or Apache. The original source code can be found here: /// https://github.com/matter-labs/era-compiler-tester/blob/0ed598a27f6eceee7008deab3ff2311075a2ec69/compiler_tester/src/test/case/input/value.rs#L43-L146 -pub fn resolve_argument( +fn resolve_argument( value: &str, deployed_contracts: &HashMap, chain_state_provider: &impl EthereumNode,