Skip to content

Commit

Permalink
integration-tests: Remove receipt check
Browse files Browse the repository at this point in the history
  • Loading branch information
cdamian committed Oct 6, 2024
1 parent 8652784 commit 571bd9e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions runtime/integration-tests/src/cases/lp/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ use staging_xcm::{
use crate::{
cases::lp::{EVM_DOMAIN_CHAIN_ID, EVM_ROUTER_ID, POOL_A, POOL_B, POOL_C},
config::Runtime,
utils::{accounts::Keyring, evm::receipt_ok, last_event, pool::get_tranche_ids},
utils::{accounts::Keyring, last_event, pool::get_tranche_ids},
};

/// Returns the local representation of a remote ethereum account
Expand Down Expand Up @@ -86,15 +86,14 @@ pub fn pool_c_tranche_1_id<T: Runtime>() -> TrancheId {
}

pub fn verify_outbound_failure_on_lp<T: Runtime>(to: H160) {
let (_tx, status, receipt) = pallet_ethereum::Pending::<T>::get()
let (_tx, status, _receipt) = pallet_ethereum::Pending::<T>::get()
.last()
.expect("Queue triggered evm tx.")
.clone();

// The sender is the sender account on the gateway
assert_eq!(T::Sender::get().h160(), status.from);
assert_eq!(status.to.unwrap().0, to.0);
assert!(!receipt_ok(receipt));
assert!(matches!(
last_event::<T, pallet_liquidity_pools_gateway_queue::Event::<T>>(),
pallet_liquidity_pools_gateway_queue::Event::<T>::MessageExecutionFailure { .. }
Expand Down

0 comments on commit 571bd9e

Please sign in to comment.