Skip to content

Commit 58313de

Browse files
cli: Use camelCase for program name in anchor.workspace templates (#3581)
1 parent 8b391aa commit 58313de

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ The minor version will be incremented upon a breaking change and the patch versi
119119
- lang: Fix instructions with no accounts causing compilation errors when using `declare_program!` ([#3567](https://github.com/coral-xyz/anchor/pull/3567)).
120120
- idl: Fix using account or arg values for `seeds::program` ([#3570](https://github.com/coral-xyz/anchor/pull/3570)).
121121
- lang: Fix using `data` as an instruction parameter name in `declare_program!` ([#3574](https://github.com/coral-xyz/anchor/pull/3574)).
122+
- cli: Use camelCase for program name in `anchor.workspace` templates ([#3581](https://github.com/coral-xyz/anchor/pull/3581)).
122123

123124
### Breaking
124125

cli/src/rust_template.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ describe("{}", () => {{
348348
}});
349349
"#,
350350
name,
351-
name.to_pascal_case(),
351+
name.to_lower_camel_case(),
352352
)
353353
}
354354

@@ -369,7 +369,7 @@ describe("{}", () => {{
369369
}});
370370
"#,
371371
name,
372-
name.to_pascal_case(),
372+
name.to_lower_camel_case(),
373373
)
374374
}
375375

@@ -486,7 +486,7 @@ describe("{}", () => {{
486486
name.to_pascal_case(),
487487
name.to_snake_case(),
488488
name,
489-
name.to_pascal_case(),
489+
name.to_lower_camel_case(),
490490
name.to_pascal_case(),
491491
)
492492
}
@@ -513,7 +513,7 @@ describe("{}", () => {{
513513
name.to_pascal_case(),
514514
name.to_snake_case(),
515515
name,
516-
name.to_pascal_case(),
516+
name.to_lower_camel_case(),
517517
name.to_pascal_case(),
518518
)
519519
}

0 commit comments

Comments
 (0)