(n: u64)
| 117 | } |
| 118 | |
| 119 | pub 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 | |
| 126 | pub fn try_get_request( |
| 127 | env: &PocketIc, |