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 ed415b9 commit e37f5e0Copy full SHA for e37f5e0
stackslib/src/net/mod.rs
@@ -2489,15 +2489,15 @@ pub mod test {
2489
name: ContractName::try_from(
2490
conf.test_name
2491
.replace("::", "-")
2492
- .trim_start_matches(|c: char| !c.is_alphabetic())
2493
.chars()
2494
- // ensure auto-generated contract names are not too long
2495
.skip(
2496
2497
.len()
2498
.saturating_sub(CONTRACT_MAX_NAME_LENGTH),
2499
)
2500
- .collect::<String>(),
+ .collect::<String>()
+ .trim_start_matches(|c: char| !c.is_alphabetic())
+ .to_string(),
2501
2502
.expect("FATAL: invalid boot-code contract name"),
2503
code_body: StacksString::from_str(&conf.setup_code)
0 commit comments