Skip to content

Commit

Permalink
fix: xcm simulator tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutoshvarma committed Oct 16, 2023
1 parent 8e6c148 commit c5b1f07
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/xcm-simulator/src/tests/experimental.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ fn xcm_remote_transact_contract() {
);

// check for flip status
let (res, _, _) = call_wasm_contract_method::<parachain::Runtime, Result<bool, ()>>(
let (res, _, _) = call_wasm_contract_method::<parachain::Runtime, bool>(
ALICE.into(),
contract_id.clone(),
0,
Expand All @@ -192,7 +192,7 @@ fn xcm_remote_transact_contract() {
SELECTOR_GET.to_vec(),
true,
);
assert_eq!(res, Ok(true));
assert_eq!(res, true);
});

ParaB::execute_with(|| {
Expand Down Expand Up @@ -229,7 +229,7 @@ fn xcm_remote_transact_contract() {

// check for flip status, it should be false
ParaA::execute_with(|| {
let (res, _, _) = call_wasm_contract_method::<parachain::Runtime, Result<bool, ()>>(
let (res, _, _) = call_wasm_contract_method::<parachain::Runtime, bool>(
ALICE.into(),
contract_id.clone(),
0,
Expand All @@ -238,7 +238,7 @@ fn xcm_remote_transact_contract() {
SELECTOR_GET.to_vec(),
true,
);
assert_eq!(res, Ok(false));
assert_eq!(res, false);
});
}

Expand Down Expand Up @@ -310,7 +310,7 @@ fn test_async_xcm_contract_call_no_ce() {
//
ParaA::execute_with(|| {
assert_eq!(
call_wasm_contract_method::<parachain::Runtime, Result<bool, ()>>(
call_wasm_contract_method::<parachain::Runtime, bool>(
ALICE.into(),
contract_id.clone(),
0,
Expand Down Expand Up @@ -343,7 +343,7 @@ fn test_async_xcm_contract_call_no_ce() {
true,
)
.0,
Ok(true)
true
);
});

Expand All @@ -360,7 +360,7 @@ fn test_async_xcm_contract_call_no_ce() {
// Check for contract method called
ParaA::execute_with(|| {
assert_eq!(
call_wasm_contract_method::<parachain::Runtime, Result<Option<bool>, ()>>(
call_wasm_contract_method::<parachain::Runtime, Option<bool>>(
ALICE.into(),
contract_id.clone(),
0,
Expand All @@ -370,7 +370,7 @@ fn test_async_xcm_contract_call_no_ce() {
true,
)
.0,
Ok(Some(true))
Some(true)
);
});
}

0 comments on commit c5b1f07

Please sign in to comment.