diff --git a/forc/src/utils/defaults.rs b/forc/src/utils/defaults.rs index 040e736fa42..1b70432357d 100644 --- a/forc/src/utils/defaults.rs +++ b/forc/src/utils/defaults.rs @@ -5,16 +5,15 @@ pub(crate) fn default_manifest(project_name: &str) -> String { format!( r#"[project] -name = "{}" -author = "{}" +author = "{real_name}" entry = "main.sw" license = "Apache-2.0" +name = "{project_name}" [dependencies] core = {{ git = "http://github.com/FuelLabs/sway-lib-core" }} std = {{ git = "http://github.com/FuelLabs/sway-lib-std" }} -"#, - project_name, real_name +"# ) } @@ -27,11 +26,11 @@ pub(crate) fn default_tests_manifest(project_name: &str) -> String { format!( r#"[package] -name = "{}" -version = "0.1.0" -authors = ["{}"] +authors = ["{real_name}"] edition = "2021" license = "Apache-2.0" +name = "{project_name}" +version = "0.1.0" [dependencies] fuel-gql-client = {{ version = "0.2", default-features = false }} @@ -43,11 +42,10 @@ rand = "0.8" tokio = {{ version = "1.12", features = ["rt", "macros"] }} [[test]] +harness = true name = "integration_tests" path = "tests/harness.rs" -harness = true -"#, - project_name, real_name, +"# ) }