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

Method new

ipc/api/src/address.rs:21–26  ·  view source on GitHub ↗

Generates new IPC address

(sn: &SubnetID, addr: &Address)

Source from the content-addressed store, hash-verified

19impl IPCAddress {
20 /// Generates new IPC address
21 pub fn new(sn: &SubnetID, addr: &Address) -> Result<Self, Error> {
22 Ok(Self {
23 subnet_id: sn.clone(),
24 raw_address: *addr,
25 })
26 }
27
28 /// Returns subnets of a IPC address
29 pub fn subnet(&self) -> Result<SubnetID, Error> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected