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

Function get_user

tests/integration/src/utils.rs:407–411  ·  view source on GitHub ↗
(env: &PocketIc, user_id: Principal, station_canister_id: Principal)

Source from the content-addressed store, hash-verified

405}
406
407pub fn get_user(env: &PocketIc, user_id: Principal, station_canister_id: Principal) -> UserDTO {
408 let res: (ApiResult<MeResponse>,) =
409 update_candid_as(env, station_canister_id, user_id, "me", ()).unwrap();
410 res.0.unwrap().me
411}
412
413pub fn canister_status(
414 env: &PocketIc,

Calls

no outgoing calls