Skip to content

Commit

Permalink
Merge pull request #1880 from multiversx/snippets-gen-name-fix
Browse files Browse the repository at this point in the history
fix for scs with names containing -
  • Loading branch information
andrei-marinica authored Nov 28, 2024
2 parents b41361a + 54bc4d4 commit 406e02e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use super::{
impl MetaConfig {
pub fn generate_rust_snippets(&self, args: &GenerateSnippetsArgs) {
let main_contract = self.sc_config.main_contract();
let crate_name = &main_contract.contract_name;
let crate_name = &main_contract.contract_name.replace("-", "_");
let mut file =
create_snippets_crate_and_get_lib_file(&self.snippets_dir, crate_name, args.overwrite);
write_snippets_to_file(&mut file, &self.original_contract_abi, crate_name);
Expand Down

0 comments on commit 406e02e

Please sign in to comment.