diff --git a/CHANGELOG.md b/CHANGELOG.md index f301df7..6e4b0fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ Changelog for `cargo-odra`. +## [0.0.10] - 2023-12-13 + +### Fixed +- Fixed error that caused the template for odra 0.8.0 being downloaded for earlier +versions of odra. + ## [0.0.9] - 2023-07-19 ### Added diff --git a/Cargo.toml b/Cargo.toml index b503d91..9785bef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ description = "A cargo utility that helps to create, manage and test your smart keywords = ["wasm", "webassembly", "blockchain"] categories = ["wasm", "smart contracts"] name = "cargo-odra" -version = "0.0.9" +version = "0.0.10" edition = "2021" [dependencies] diff --git a/justfile b/justfile index 51c8128..2a48845 100644 --- a/justfile +++ b/justfile @@ -1,4 +1,4 @@ -DEVELOPMENT_ODRA_BRANCH := "release/0.5.0" +DEVELOPMENT_ODRA_BRANCH := "release/0.7.1" default: just --list @@ -21,6 +21,8 @@ test-project-generation-on-future-odra: just test-testproject test-testproject: + cd testproject && rustup target add wasm32-unknown-unknown + cd testproject && rustup component add rustfmt --toolchain nightly-2023-03-01-x86_64-unknown-linux-gnu cd testproject && cargo odra generate -c plascoin cd testproject && cargo odra test cd testproject && cargo odra test -b casper diff --git a/rust-toolchain b/rust-toolchain index 101ae3a..b27a258 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1 +1 @@ -nightly-2023-03-01 \ No newline at end of file +nightly-2023-04-20 diff --git a/src/project.rs b/src/project.rs index 96917f3..c278e90 100644 --- a/src/project.rs +++ b/src/project.rs @@ -399,11 +399,10 @@ impl Project { } fn odra_location(source: Option) -> OdraLocation { - // repo let source = if let Some(source) = source { source } else { - return OdraLocation::Remote(ODRA_TEMPLATE_GH_REPO.to_string(), None); + Self::odra_latest_version() }; // location on disk