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

This commit is contained in:
Armani Ferrante 2021-05-24 18:23:31 -07:00 committed by GitHub
parent dd64779273
commit b1dbf7c5bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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()
));