diff --git a/apps/circuit-compiler/src/app/actions/index.ts b/apps/circuit-compiler/src/app/actions/index.ts index d5c55b2a610..ad6f519fcd1 100644 --- a/apps/circuit-compiler/src/app/actions/index.ts +++ b/apps/circuit-compiler/src/app/actions/index.ts @@ -169,7 +169,7 @@ function trackEvent(plugin, eventCategory, action, label) { } async function readFileAsUint8Array(plugin: CircomPluginClient, path: string): Promise { - const data = await plugin.call('fileManager', 'readFile', path, { encoding: null }) + const data = await plugin.call('fileManager', 'readFile', path) return new Uint8Array(data.split(',').map(byte => parseInt(byte, 10))) }