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

Function test_ipc_serialization

ipc/api/src/address.rs:159–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

157 #[cfg(feature = "fil-actor")]
158 #[test]
159 fn test_ipc_serialization() {
160 let sub_id = SubnetID::new(123, vec![Address::new_id(100)]);
161 let addr = IPCAddress::new(&sub_id, &Address::new_id(101)).unwrap();
162 let st = addr.to_bytes().unwrap();
163 let addr_out = IPCAddress::from_bytes(&st).unwrap();
164 assert_eq!(addr, addr_out);
165 }
166}

Callers

nothing calls this directly

Calls 1

to_bytesMethod · 0.45

Tested by

no test coverage detected