Skip to content

Commit

Permalink
fix for sc with names containing -
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaicalinluca committed Nov 27, 2024
1 parent b41361a commit 7284bd3
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 7284bd3

Please sign in to comment.