Skip to content

Commit

Permalink
test: remove leading dashes from auto-generated test contract names
Browse files Browse the repository at this point in the history
  • Loading branch information
janniks committed May 6, 2024
1 parent 5f1173a commit 86dd3df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stackslib/src/net/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2414,7 +2414,9 @@ pub mod test {
.len()
.saturating_sub(CONTRACT_MAX_NAME_LENGTH),
)
.collect::<String>(),
.collect::<String>()
.trim_start_matches('-') // Remove leading '-'
.to_string(),
)
.expect("FATAL: invalid boot-code contract name"),
code_body: StacksString::from_str(&conf.setup_code)
Expand Down

0 comments on commit 86dd3df

Please sign in to comment.