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

Support to_candid and from_candid in the interpreter #74

Open
paulyoung opened this issue Dec 31, 2022 · 1 comment
Open

Support to_candid and from_candid in the interpreter #74

paulyoung opened this issue Dec 31, 2022 · 1 comment

Comments

@paulyoung
Copy link

I realize this is probably better raised in the motoko repo but I encountered it at embed.smartcontracts.org so I figured I’d start here.

I was trying to help someone translate some Motoko code to Candid so they could call a method using dfx, and ran into mo:12.1-12.20: internal error, Invalid_argument("to do: ToCandidE")

It originates here: https://github.com/dfinity/motoko/blob/26c229ad2b6305e15740eb718aa1caf1329f9afd/src/mo_interpreter/interpret.ml#L439-L440

  | ToCandidE _ -> invalid_arg "to do: ToCandidE"
  | FromCandidE _ -> invalid_arg "to do: FromCandidE"
@rvanasa
Copy link
Contributor

rvanasa commented Jan 1, 2023

Here's the relevant issue in the motoko repository: dfinity/motoko#3653.

It might be possible to implement this feature directly in Embed Motoko using a Wasm module, so I'll keep this issue open to track progress for this approach.

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

No branches or pull requests

2 participants