Browse Source

cli: Use pascal case for anchor shell workspace (#319)

Armani Ferrante 4 years ago
parent
commit
b1dbf7c5bf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cli/src/template.rs

+ 1 - 1
cli/src/template.rs

@@ -228,7 +228,7 @@ anchor.setProvider(provider);
             r#"
 anchor.workspace.{} = new anchor.Program({}, new PublicKey("{}"), provider);
 "#,
-            program.name,
+            program.name.to_camel_case(),
             serde_json::to_string(&program.idl)?,
             program.program_id.to_string()
         ));