Skip to content

Commit

Permalink
[E2E alternative backend]: Abstract error and result structs (#1844)
Browse files Browse the repository at this point in the history
* Extract error

* Correct doc for error

* Start moving results: instantiation result

* UploadResult

* CallResult

* CallDryRunResult

* Formatting

* Annotation

* Formatting

* Formatting

* No `E`
  • Loading branch information
pmikolajczyk41 authored Jul 13, 2023
1 parent 255fc20 commit 7c65a87
Show file tree
Hide file tree
Showing 12 changed files with 305 additions and 332 deletions.
4 changes: 2 additions & 2 deletions crates/e2e/macro/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ impl TryFrom<ast::AttributeArgs> for E2EConfig {
return Err(format_err_spanned!(
arg,
"expected a string literal for `additional_contracts` ink! E2E test configuration argument",
))
));
}
} else if arg.name.is_ident("environment") {
if let Some((_, ast)) = environment {
Expand All @@ -67,7 +67,7 @@ impl TryFrom<ast::AttributeArgs> for E2EConfig {
return Err(format_err_spanned!(
arg,
"expected a path for `environment` ink! E2E test configuration argument",
))
));
}
} else {
return Err(format_err_spanned!(
Expand Down
Loading

0 comments on commit 7c65a87

Please sign in to comment.