From c61df0bc444f7fe2e33f7ba946aa2c3f82d59183 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Zieli=C5=84ski?= Date: Tue, 6 Feb 2024 22:19:51 +0700 Subject: [PATCH] Fix schema generation. --- .github/workflows/ci-cargo-odra.yml | 8 ++++---- .gitignore | 3 ++- src/actions/schema.rs | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci-cargo-odra.yml b/.github/workflows/ci-cargo-odra.yml index 6c8fee9..a37880a 100644 --- a/.github/workflows/ci-cargo-odra.yml +++ b/.github/workflows/ci-cargo-odra.yml @@ -32,7 +32,7 @@ jobs: - run: just prepare - run: just check-lint - run: just install - - run: just test-project-generation-on-future-odra - - run: just test-workspace-generation-on-future-odra -# - run: just test-project-generation-on-stable-odra -# - run: just test-workspace-generation-on-stable-odra +# - run: just test-project-generation-on-future-odra +# - run: just test-workspace-generation-on-future-odra + - run: just test-project-generation-on-stable-odra + - run: just test-workspace-generation-on-stable-odra diff --git a/.gitignore b/.gitignore index ff052b3..159ee9f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /target -.idea testproject Cargo.lock +.* +!/.gitignore diff --git a/src/actions/schema.rs b/src/actions/schema.rs index 6bfc108..408bf24 100644 --- a/src/actions/schema.rs +++ b/src/actions/schema.rs @@ -38,7 +38,7 @@ impl SchemaAction<'_> { command::cargo_generate_schema_files( self.project.project_root(), &contract.struct_name(), - &contract.module_name(), + &contract.crate_name(self.project), ); } }