MCPcopy Create free account
hub / github.com/ChainSafe/Delorean-Protocol / into_contract_validators

Function into_contract_validators

ipc/api/src/validator.rs:31–40  ·  view source on GitHub ↗
(
    vals: Vec<Validator>,
)

Source from the content-addressed store, hash-verified

29}
30
31pub fn into_contract_validators(
32 vals: Vec<Validator>,
33) -> anyhow::Result<Vec<subnet_actor_getter_facet::Validator>> {
34 let result: Result<Vec<subnet_actor_getter_facet::Validator>, _> = vals
35 .into_iter()
36 .map(|validator| validator.try_into())
37 .collect();
38
39 result
40}
41
42pub fn from_contract_validators(
43 vals: Vec<subnet_actor_getter_facet::Validator>,

Callers

nothing calls this directly

Calls 2

collectMethod · 0.80
try_intoMethod · 0.80

Tested by

no test coverage detected