Skip to content

Commit bbfc0b4

Browse files
committed
Change name of fetch_ssv function
1 parent a1dbb87 commit bbfc0b4

File tree

1 file changed

+3
-5
lines changed
  • crates/common/src/config

1 file changed

+3
-5
lines changed

crates/common/src/config/mux.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,7 @@ impl MuxKeysLoader {
178178

179179
fetch_lido_registry_keys(rpc_url, chain, U256::from(*node_operator_id)).await
180180
}
181-
NORegistry::SSV => {
182-
fetch_ssv_registry_keys(chain, U256::from(*node_operator_id)).await
183-
}
181+
NORegistry::SSV => fetch_ssv_pubkeys(chain, U256::from(*node_operator_id)).await,
184182
},
185183
}
186184
}
@@ -271,7 +269,7 @@ async fn fetch_lido_registry_keys(
271269
Ok(keys)
272270
}
273271

274-
async fn fetch_ssv_registry_keys(
272+
async fn fetch_ssv_pubkeys(
275273
chain: Chain,
276274
node_operator_id: U256,
277275
) -> eyre::Result<Vec<BlsPublicKey>> {
@@ -380,7 +378,7 @@ mod tests {
380378
let chain = Chain::Holesky;
381379
let node_operator_id = U256::from(200);
382380

383-
let pubkeys = fetch_ssv_registry_keys(chain, node_operator_id).await?;
381+
let pubkeys = fetch_ssv_pubkeys(chain, node_operator_id).await?;
384382

385383
assert_eq!(pubkeys.len(), 3);
386384

0 commit comments

Comments
 (0)