ic-canister-kit 1.0.26

An ic canister package
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use super::fetch_tuple0;

/// 查询罐子的 candid
pub async fn canister_did(
    canister_id: crate::identity::CanisterId,
) -> super::types::CanisterCallResult<String> {
    let call_result = super::call::call_canister::<_, (String,)>(
        canister_id,
        "__get_candid_interface_tmp_hack",
        (),
    )
    .await;
    call_result.map(fetch_tuple0)
}