Fix leo new

This commit is contained in:
Pranav Gaddamadugu 2022-10-06 00:25:28 -07:00
parent d7813923d2
commit e94d43536a

View File

@ -66,15 +66,18 @@ impl MainFile {
.map_err(PackageError::io_error_main_file)?)
}
// TODO: Generalize to other networks.
fn template(&self) -> String {
format!(
r#"// The '{}' main function.
transition main(public a: u32, b: u32) -> u32 {{
let c: u32 = a + b;
return c;
program {}.aleo {{
transition main(public a: u32, b: u32) -> u32 {{
let c: u32 = a + b;
return c;
}}
}}
"#,
self.package_name
self.package_name, self.package_name
)
}
}