fix: new import style from circom_runtime

This commit is contained in:
Blaine Bublitz 2021-01-17 15:15:45 -07:00
parent 200db1f7bf
commit 3e1ea8a6da
2 changed files with 2 additions and 6 deletions

@ -1,10 +1,8 @@
import * as fastFile from "fastfile"; import * as fastFile from "fastfile";
import circomRuntime from "circom_runtime"; import { WitnessCalculatorBuilder } from "circom_runtime";
import * as wtnsUtils from "./wtns_utils.js"; import * as wtnsUtils from "./wtns_utils.js";
import * as binFileUtils from "@iden3/binfileutils"; import * as binFileUtils from "@iden3/binfileutils";
const { WitnessCalculatorBuilder } = circomRuntime;
export default async function wtnsCalculate(input, wasmFileName, wtnsFileName, options) { export default async function wtnsCalculate(input, wasmFileName, wtnsFileName, options) {
const fdWasm = await fastFile.readExisting(wasmFileName); const fdWasm = await fastFile.readExisting(wasmFileName);

@ -1,11 +1,9 @@
import * as fastFile from "fastfile"; import * as fastFile from "fastfile";
import circomRuntime from "circom_runtime"; import { WitnessCalculatorBuilder } from "circom_runtime";
import * as wtnsUtils from "./wtns_utils.js"; import * as wtnsUtils from "./wtns_utils.js";
import * as binFileUtils from "@iden3/binfileutils"; import * as binFileUtils from "@iden3/binfileutils";
import loadSyms from "./loadsyms.js"; import loadSyms from "./loadsyms.js";
const { WitnessCalculatorBuilder } = circomRuntime;
export default async function wtnsDebug(input, wasmFileName, wtnsFileName, symName, options, logger) { export default async function wtnsDebug(input, wasmFileName, wtnsFileName, symName, options, logger) {
const fdWasm = await fastFile.readExisting(wasmFileName); const fdWasm = await fastFile.readExisting(wasmFileName);