|
|
|
@ -46,8 +46,7 @@ export const sindriScripts = async (plugin: any) => { |
|
|
|
|
// For now, we only support Circom.
|
|
|
|
|
|
|
|
|
|
// Infer manifest properties from the existing files in the workspace.
|
|
|
|
|
switch (sindriManifest.circuitType) { |
|
|
|
|
case 'circom': |
|
|
|
|
if (sindriManifest.circuitType === 'circom') { |
|
|
|
|
// Try to find the best `.circom` source file to use as the main component.
|
|
|
|
|
// First, we limit ourselves to `.circom` files.
|
|
|
|
|
const circomPathsAndContents = await Promise.all( |
|
|
|
@ -72,7 +71,6 @@ export const sindriScripts = async (plugin: any) => { |
|
|
|
|
}) |
|
|
|
|
.map(({path}) => path)[0] || './circuit.circom' |
|
|
|
|
sindriManifest.circuitPath = circomCircuitPath |
|
|
|
|
break |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Derive the circuit name from the workspace name.
|
|
|
|
|