Skip to content

Commit

Permalink
clean unneeded stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
yito88 committed Dec 11, 2023
1 parent 0ec00b2 commit 755b20c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions tests/src/e2e/ibc_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ fn run_ledger_ibc() -> Result<()> {
try_invalid_transfers(&test_a, &test_b, &port_id_a, &channel_id_a)?;

// Transfer 50000 received over IBC on Chain B
transfer_received_token(&port_id_b, &channel_id_b, &test_a, &test_b)?;
transfer_received_token(&port_id_b, &channel_id_b, &test_b)?;
check_balances_after_non_ibc(&port_id_b, &channel_id_b, &test_b)?;

// Transfer 50000 back from the origin-specific account on Chain B to Chain
Expand Down Expand Up @@ -208,7 +208,7 @@ fn run_ledger_ibc_with_hermes() -> Result<()> {
check_balances(&port_id_b, &channel_id_b, &test_a, &test_b)?;

// Transfer 50000 received over IBC on Chain B
transfer_received_token(&port_id_b, &channel_id_b, &test_a, &test_b)?;
transfer_received_token(&port_id_b, &channel_id_b, &test_b)?;
check_balances_after_non_ibc(&port_id_b, &channel_id_b, &test_b)?;

// Transfer 50000 back from the origin-specific account on Chain B to Chain
Expand Down Expand Up @@ -283,12 +283,12 @@ fn run_two_nets() -> Result<(NamadaCmd, NamadaCmd, Test, Test)> {
let mut ledger_a =
run_as!(test_a, Who::Validator(0), Bin::Node, &["ledger"], Some(40))?;
ledger_a.exp_string("Namada ledger node started")?;
ledger_a.exp_string("This node is a validator")?;
// Run Chain B
std::env::set_var(ENV_VAR_CHAIN_ID, test_b.net.chain_id.to_string());
let mut ledger_b =
run_as!(test_b, Who::Validator(0), Bin::Node, &["ledger"], Some(40))?;
ledger_b.exp_string("Namada ledger node started")?;
ledger_a.exp_string("This node is a validator")?;
ledger_b.exp_string("This node is a validator")?;

wait_for_wasm_pre_compile(&mut ledger_a)?;
Expand Down Expand Up @@ -1009,13 +1009,10 @@ fn try_invalid_transfers(
fn transfer_received_token(
port_id: &PortId,
channel_id: &ChannelId,
test_a: &Test,
test_b: &Test,
) -> Result<()> {
std::env::set_var(ENV_VAR_CHAIN_ID, test_a.net.chain_id.to_string());
let org_nam_addr = find_address(test_a, NAM).unwrap();
std::env::set_var(ENV_VAR_CHAIN_ID, test_b.net.chain_id.to_string());
let ibc_denom = format!("{port_id}/{channel_id}/{org_nam_addr}");
let ibc_denom = format!("{port_id}/{channel_id}/nam");
let rpc = get_actor_rpc(test_b, &Who::Validator(0));
let amount = Amount::native_whole(50000).to_string_native();
let tx_args = [
Expand Down
2 changes: 1 addition & 1 deletion tests/src/e2e/ledger_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ fn start_namada_ledger_node(
Ok(node)
}

pub fn start_namada_ledger_node_wait_wasm(
fn start_namada_ledger_node_wait_wasm(
test: &Test,
idx: Option<u64>,
timeout_sec: Option<u64>,
Expand Down

0 comments on commit 755b20c

Please sign in to comment.