Skip to content

Commit

Permalink
Fix import errors and handle contract name parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
kpob committed Jan 19, 2024
1 parent 9cb2426 commit dbc75f1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/actions/build.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! Module for managing and building backends.
use super::utils;
use crate::{command, log, paths, project::Project};
use crate::{command, errors::Error, log, paths, project::Project};

/// BuildAction configuration.
pub struct BuildAction<'a> {
Expand Down
2 changes: 1 addition & 1 deletion src/actions/schema.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! Module for generating contracts schema.
use super::utils;
use crate::{command, log, project::Project};
use crate::{command, errors::Error, log, project::Project};

/// SchemaAction configuration.
pub struct SchemaAction<'a> {
Expand Down
2 changes: 1 addition & 1 deletion src/actions/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub fn contracts(project: &Project, names_string: String) -> Result<Vec<Contract

/// Check if contract name argument is valid if set.
pub fn validate_contract_name_argument(project: &Project, names_string: String) {
let names = parse_contracts_names(names_string);
let names = parse_contracts_names(names_string).unwrap_or_default();
names.iter().for_each(|contract_name| {
if !project
.odra_toml()
Expand Down

0 comments on commit dbc75f1

Please sign in to comment.