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

Method from_bytes

ipc/api/src/address.rs:45–51  ·  view source on GitHub ↗
(bz: &[u8])

Source from the content-addressed store, hash-verified

43
44 #[cfg(feature = "fil-actor")]
45 pub fn from_bytes(bz: &[u8]) -> Result<Self, Error> {
46 let i: Self = fil_actors_runtime::cbor::deserialize(
47 &fvm_ipld_encoding::RawBytes::new(bz.to_vec()),
48 "ipc-address",
49 )?;
50 Ok(i)
51 }
52
53 pub fn to_string(&self) -> Result<String, Error> {
54 Ok(format!(

Callers

nothing calls this directly

Calls 2

to_vecMethod · 0.80
deserializeFunction · 0.50

Tested by

no test coverage detected