Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Candid UI update #358

Merged
merged 2 commits into from
Jun 30, 2022
Merged

Candid UI update #358

merged 2 commits into from
Jun 30, 2022

Conversation

chenyan-dfinity
Copy link
Contributor

@chenyan-dfinity chenyan-dfinity commented Jun 30, 2022

  • Fetch did file from canister metadata
  • Deprecate localhost/_/candid endpoint
  • Fetch name section from metadata (instrumented code)
  • bump agent-js
  • bump ic-cdk

decoded.forEach(([id, name]) => names[id] = name);
} catch(err) {
return undefined;
}
}

async function getDidJsFromMetadata(canisterId: Principal): Promise<undefined | string> {
const status = await CanisterStatus.request({ agent, canisterId, paths: ['candid'] });

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants