(bz: &[u8])
| 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!( |
nothing calls this directly
no test coverage detected