diff --git a/stackslib/src/net/mod.rs b/stackslib/src/net/mod.rs index 4cea3a684d..9ba37f252a 100644 --- a/stackslib/src/net/mod.rs +++ b/stackslib/src/net/mod.rs @@ -2414,7 +2414,9 @@ pub mod test { .len() .saturating_sub(CONTRACT_MAX_NAME_LENGTH), ) - .collect::(), + .collect::() + .trim_start_matches('-') // Remove leading '-' + .to_string(), ) .expect("FATAL: invalid boot-code contract name"), code_body: StacksString::from_str(&conf.setup_code)