We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 487ebbe commit 464b319Copy full SHA for 464b319
stackslib/src/net/mod.rs
@@ -2487,17 +2487,15 @@ pub mod test {
2487
name: ContractName::try_from(
2488
conf.test_name
2489
.replace("::", "-")
2490
- .to_string()
+ .trim_start_matches(|c: char| !c.is_alphabetic())
2491
.chars()
2492
// ensure auto-generated contract names are not too long
2493
.skip(
2494
2495
.len()
2496
.saturating_sub(CONTRACT_MAX_NAME_LENGTH),
2497
)
2498
- .collect::<String>()
2499
- .trim_start_matches(|c: char| !c.is_alphabetic())
2500
- .to_string(),
+ .collect::<String>(),
2501
2502
.expect("FATAL: invalid boot-code contract name"),
2503
code_body: StacksString::from_str(&conf.setup_code)
0 commit comments