Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
syn::Path
  • Loading branch information
pmikolajczyk41 committed Feb 9, 2023
commit a7499b06cae06ccb4087ac87ba559e94645a010c
7 changes: 3 additions & 4 deletions crates/e2e/macro/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ use ink_ir::{
WhitelistedAttributes,
},
};
use syn::Path;

/// The End-to-End test configuration.
#[derive(Debug, Default, PartialEq, Eq)]
Expand All @@ -30,7 +29,7 @@ pub struct E2EConfig {
/// Additional contracts that have to be built before executing the test.
additional_contracts: Vec<String>,
/// Custom environment for the contracts, if specified. Otherwise `DefaultEnvironment` is used.
environment: Option<Path>,
environment: Option<syn::Path>,
}

impl TryFrom<ast::AttributeArgs> for E2EConfig {
Expand All @@ -39,7 +38,7 @@ impl TryFrom<ast::AttributeArgs> for E2EConfig {
fn try_from(args: ast::AttributeArgs) -> Result<Self, Self::Error> {
let mut whitelisted_attributes = WhitelistedAttributes::default();
let mut additional_contracts: Option<(syn::LitStr, ast::MetaNameValue)> = None;
let mut environment: Option<(Path, ast::MetaNameValue)> = None;
let mut environment: Option<(syn::Path, ast::MetaNameValue)> = None;

for arg in args.into_iter() {
if arg.name.is_ident("keep_attr") {
Expand Down Expand Up @@ -101,7 +100,7 @@ impl E2EConfig {
}

/// Custom environment for the contracts, if specified.
pub fn environment(&self) -> Option<Path> {
pub fn environment(&self) -> Option<syn::Path> {
self.environment.clone()
}
}
Expand Down