Skip to content
Merged
Show file tree
Hide file tree
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
Annotation
  • Loading branch information
pmikolajczyk41 committed Jul 10, 2023
commit 46a5e90b491c337d7becaedef1fe2c2c7bb49dfd
2 changes: 1 addition & 1 deletion integration-tests/contract-transfer/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ pub mod give_me {
let call_res = client.call(&ink_e2e::bob(), &transfer, 10, None).await;

// then
if let Err(ink_e2e::Error::CallDryRun(dry_run)) = call_res {
if let Err(ink_e2e::Error::<E>::CallDryRun(dry_run)) = call_res {
let debug_message = String::from_utf8_lossy(&dry_run.debug_message);
assert!(debug_message.contains("paid an unpayable message"))
} else {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
#![cfg_attr(not(feature = "std"), no_std, no_main)]

pub use self::constructors_return_value::{
ConstructorError,
ConstructorsReturnValue,
ConstructorsReturnValueRef,
ConstructorError, ConstructorsReturnValue, ConstructorsReturnValueRef,
};

#[ink::contract]
Expand Down Expand Up @@ -259,7 +257,7 @@ pub mod constructors_return_value {
.await;

assert!(
matches!(result, Err(ink_e2e::Error::InstantiateExtrinsic(_))),
matches!(result, Err(ink_e2e::Error::<E>::InstantiateExtrinsic(_))),
"Constructor should fail"
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ mod contract_ref {
);

let contains_err_msg = match instantiate_result.unwrap_err() {
ink_e2e::Error::InstantiateDryRun(dry_run) => {
ink_e2e::Error::<E>::InstantiateDryRun(dry_run) => {
String::from_utf8_lossy(&dry_run.debug_message).contains(
"Received an error from the Flipper constructor while instantiating Flipper FlipperError"
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#![cfg_attr(not(feature = "std"), no_std, no_main)]

pub use self::integration_flipper::{
Flipper,
FlipperRef,
};
pub use self::integration_flipper::{Flipper, FlipperRef};

#[ink::contract]
pub mod integration_flipper {
Expand Down Expand Up @@ -134,7 +131,7 @@ pub mod integration_flipper {

assert!(matches!(
err_flip_call_result,
Err(ink_e2e::Error::CallExtrinsic(_))
Err(ink_e2e::Error::<E>::CallExtrinsic(_))
));

let flipped_value = client
Expand Down