Skip to content

Commit

Permalink
🐛 Fixed malformed program name.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ikrk committed Feb 15, 2024
1 parent c7f2da6 commit a615c4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/client/src/idl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,7 @@ pub async fn parse_to_idl_program(name: String, code: &str) -> Result<IdlProgram
let parameter_id_type = field.ty.into_token_stream().to_string();

if let Some(path) = find_item_path(&parameter_id_type, &syn_file) {
let name = name.to_snake_case();
let tmp_final_path = format!("{name}{path}");
(parameter_name, tmp_final_path)
} else {
Expand Down

0 comments on commit a615c4b

Please sign in to comment.