From 10344dc4ea4ccba6166f02e352568a2dc80a92a0 Mon Sep 17 00:00:00 2001 From: Cosmin Damian <17934949+cdamian@users.noreply.github.com> Date: Tue, 5 Mar 2024 16:32:20 +0200 Subject: [PATCH] lp-gateway-routers: Remove value from test data (#1760) --- pallets/liquidity-pools-gateway/routers/src/tests.rs | 4 ++-- runtime/integration-tests/src/evm/ethereum_transaction.rs | 3 +-- .../integration-tests/src/generic/cases/liquidity_pools.rs | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/pallets/liquidity-pools-gateway/routers/src/tests.rs b/pallets/liquidity-pools-gateway/routers/src/tests.rs index 7c268d8db4..57d1672428 100644 --- a/pallets/liquidity-pools-gateway/routers/src/tests.rs +++ b/pallets/liquidity-pools-gateway/routers/src/tests.rs @@ -55,7 +55,7 @@ mod evm_router { target_contract_address: test_contract_address, target_contract_hash: test_contract_hash, fee_values: FeeValues { - value: U256::from(10), + value: U256::from(0), gas_limit: U256::from(10), gas_price: U256::from(10), }, @@ -337,7 +337,7 @@ mod axelar_evm { target_contract_address: axelar_contract_address, target_contract_hash: axelar_contract_hash, fee_values: FeeValues { - value: U256::from(10), + value: U256::from(0), gas_limit: U256::from(10), gas_price: U256::from(10), }, diff --git a/runtime/integration-tests/src/evm/ethereum_transaction.rs b/runtime/integration-tests/src/evm/ethereum_transaction.rs index ad783c1d48..28d9ddfd0d 100644 --- a/runtime/integration-tests/src/evm/ethereum_transaction.rs +++ b/runtime/integration-tests/src/evm/ethereum_transaction.rs @@ -147,8 +147,7 @@ async fn call() { U256::from(0x100000), ); - // NOTE: WE CAN NOTE CHECK WHETHER THE EVM ERRORS OUT - assert!(res.is_ok()); + assert!(res.is_err()); }) .unwrap(); } diff --git a/runtime/integration-tests/src/generic/cases/liquidity_pools.rs b/runtime/integration-tests/src/generic/cases/liquidity_pools.rs index 71a8e586af..b6cfc907fa 100644 --- a/runtime/integration-tests/src/generic/cases/liquidity_pools.rs +++ b/runtime/integration-tests/src/generic/cases/liquidity_pools.rs @@ -4854,8 +4854,8 @@ mod development { target_contract_address: axelar_contract_address, target_contract_hash: axelar_contract_hash, fee_values: FeeValues { - value: U256::from(10), - gas_limit: U256::from(transaction_call_cost + 10_000), + value: U256::from(0), + gas_limit: U256::from(transaction_call_cost + 1_000_000), gas_price: U256::from(10), }, };