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

Webassembly LinkError when running tests #103

Open
samlaf opened this issue Sep 10, 2023 · 1 comment
Open

Webassembly LinkError when running tests #103

samlaf opened this issue Sep 10, 2023 · 1 comment

Comments

@samlaf
Copy link

samlaf commented Sep 10, 2023

Just cloned the repo, ran npm i, and mocha --grep "MiMC Circuit test" and getting

  MiMC Circuit test
    1) "before all" hook for "Should check constrain"


  0 passing (310ms)
  1 failing

  1) MiMC Circuit test
       "before all" hook for "Should check constrain":
     LinkError: WebAssembly.instantiate(): Import #1 module="runtime" function="printErrorMessage" error: function import requires a callable
      at builder (node_modules/circom_tester/wasm/witness_calculator.js:19:40)
      at async wasm_tester (node_modules/circom_tester/wasm/tester.js:60:16)
      at async Context.<anonymous> (test/mimccircuit.js:15:19)

Any idea what's happening? This is on a macbook pro m1.

@jplaui
Copy link

jplaui commented Oct 19, 2023

go to the package.json file and change the circom tester to the latest tag, like: "circom_tester": "0.0.19". For me this solved the issue...

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