MCPcopy Create free account
hub / github.com/dfinity/orbit / user_test_id

Function user_test_id

tests/integration/src/utils.rs:119–124  ·  view source on GitHub ↗
(n: u64)

Source from the content-addressed store, hash-verified

117}
118
119pub fn user_test_id(n: u64) -> Principal {
120 let mut bytes = n.to_le_bytes().to_vec();
121 bytes.push(0xfe); // internal marker for user test ids
122 bytes.push(0x01); // marker for opaque ids
123 Principal::from_slice(&bytes)
124}
125
126pub fn try_get_request(
127 env: &PocketIc,

Calls 1

to_vecMethod · 0.80