chore: remove encoding for plugin call

pull/5238/head
Amirhossein Azarpour 2 months ago
parent b4f3bcd9d3
commit ca2191ab98
  1. 2
      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<Uint8Array> {
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)))
}

Loading…
Cancel
Save