From f39e475f2f23028310c43783043dbf141183dfed Mon Sep 17 00:00:00 2001 From: Amirhossein Azarpour Date: Mon, 30 Sep 2024 21:20:47 +0330 Subject: [PATCH] chore: remove encoding for plugin call --- apps/circuit-compiler/src/app/actions/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))) }