diff --git a/cli/src/lib.rs b/cli/src/lib.rs index 51883583f..aa60701c0 100644 --- a/cli/src/lib.rs +++ b/cli/src/lib.rs @@ -2458,7 +2458,7 @@ fn generate_idl_build(no_docs: bool) -> Result> { let replaced_idl = modified_idl.replace(path, &format!(r#""{name}""#)); // Check whether there is a conflict - let has_conflict = replaced_idl.contains(&format!("::{name}")); + let has_conflict = replaced_idl.contains(&format!(r#"::{name}""#)); if !has_conflict { modified_idl = replaced_idl; } diff --git a/tests/idl/idls/build.json b/tests/idl/idls/build.json index 5f7defe06..06eaa4da2 100644 --- a/tests/idl/idls/build.json +++ b/tests/idl/idls/build.json @@ -309,7 +309,7 @@ } }, { - "name": "idl::State", + "name": "State", "docs": [ "An account containing various fields" ],