So I used __get_candid_interface_tmp_hack to get the canidid file of a canister that I can query here:
https://a4gq6-oaaaa-aaaab-qaa4q-cai.raw.ic0.app/?id=tskpj-aiaaa-aaaag-qaxsq-cai
The candid service definition contains the definition of a function I would like to query:
When I query the availableCycles() function in the canister I get the expected result:
But when I query getRegistry() I get an empty array.
It makes me think that I am not converting the registry correctly from a linked list to an array:
The type I’m trying to cast to has the same structure as the candidid getRegistry function:
But ultimately the array I get is empty.
Any help will be appreciated.