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

fetch management canister interface from replica instead of hardcoding it #3595

Open
letmejustputthishere opened this issue Feb 15, 2024 · 1 comment
Assignees
Labels

Comments

@letmejustputthishere
Copy link
Member

I tried the following:

I imported the management canister in a Motoko project like this

import Ic "ic:aaaaa-aa";

I expected to see this happen: The exposed types match the types in the interface specification

Instead, this happened: The compilation failed with the following error

/Users/moritz/projects/icrc7_launchpad/backend/factory.mo:8.36-8.53: type error [M0030], type field install_code_args does not exist in type

Meta

dfx --version:

0.17.0
Further log output

<log output>

@letmejustputthishere letmejustputthishere added the needs-triage This ticket needs investigation. label Feb 15, 2024
@sesi200
Copy link
Contributor

sesi200 commented Feb 16, 2024

I agree this would be nice to have, but it's a low priority maintenance task for now. It is planned that the replica will make the file available in the state tree at some point, so we'll not import the file from the spec repo.

Tracked internally in this ticket

@sesi200 sesi200 added triaged and removed needs-triage This ticket needs investigation. labels Feb 16, 2024
@sesi200 sesi200 changed the title fetch management canister interface from spec (or replica) instead of hardcoding it fetch management canister interface from replica instead of hardcoding it Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants