mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-09-11 05:45:30 +03:00
Fix leo new
This commit is contained in:
parent
d7813923d2
commit
e94d43536a
@ -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
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user