Skip to content

Commit

Permalink
add rpc_url json input
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasArrachea committed Sep 16, 2024
1 parent b10f440 commit cbe1002
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/eigen-cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,12 +276,14 @@ mod test {
#[derive(Deserialize, Debug)]
struct Input {
service_manager_address: Address,
rpc_url: String,
}

#[tokio::test]
async fn test_egn_addrs_with_service_manager_flag() {
let test_data = TestData::new(Input {
service_manager_address: get_service_manager_address().await,
rpc_url: ANVIL_HTTP_URL.into(),
});
let expected_addresses: ContractAddresses = serde_json::from_str(
r#"{
Expand All @@ -307,7 +309,7 @@ mod test {
let addresses = ContractAddresses::get_addresses(
Some(test_data.input.service_manager_address),
None,
ANVIL_HTTP_URL.into(),
test_data.input.rpc_url,
)
.await
.unwrap();
Expand Down

0 comments on commit cbe1002

Please sign in to comment.