Skip to content

Commit

Permalink
fix: deprecate template instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexD10S committed Sep 19, 2024
1 parent d0daaac commit 0126489
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions crates/pop-parachains/src/new_parachain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,13 @@ pub fn instantiate_openzeppelin_template(
let source = temp_dir.path();

let tag = Git::clone_and_degit(template.repository_url()?, source, tag_version)?;
let mut template_name = template.template_name_without_provider();
// Handle deprecated OpenZeppelin template
if matches!(template, Parachain::DeprecatedOpenZeppelinGeneric) {
template_name = Parachain::OpenZeppelinGeneric.template_name_without_provider();
}

extract_template_files(
template.template_name_without_provider(),
temp_dir.path(),
target,
None,
)?;
extract_template_files(template_name, temp_dir.path(), target, None)?;
Ok(tag)
}

Expand Down

0 comments on commit 0126489

Please sign in to comment.