Skip to content

Commit

Permalink
Refactors get_actor_rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
grarco committed Sep 12, 2023
1 parent 0e52848 commit a57bd89
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions tests/src/e2e/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,14 +167,9 @@ pub fn get_actor_rpc(test: &Test, who: &Who) -> String {
};
let config =
Config::load(base_dir, &test.net.chain_id, Some(tendermint_mode));
let ip = convert_tm_addr_to_socket_addr(&config.ledger.cometbft.rpc.laddr)
.ip()
.to_string();
let port =
convert_tm_addr_to_socket_addr(&config.ledger.cometbft.rpc.laddr)
.port()
.to_string();
format!("{}:{}", ip, port)
let socket_addr =
convert_tm_addr_to_socket_addr(&config.ledger.cometbft.rpc.laddr);
format!("{}:{}", socket_addr.ip(), socket_addr.port())
}

/// Get the public key of the validator
Expand Down

0 comments on commit a57bd89

Please sign in to comment.