From 51d69db890d435b4a121c452836ee7873246e6e4 Mon Sep 17 00:00:00 2001 From: Swati Rawal Date: Wed, 27 Mar 2024 17:24:30 +0000 Subject: [PATCH] chore: removed extra code --- .../visitors/toOrchestrationVisitor.ts | 48 +------------------ 1 file changed, 1 insertion(+), 47 deletions(-) diff --git a/src/transformers/visitors/toOrchestrationVisitor.ts b/src/transformers/visitors/toOrchestrationVisitor.ts index 5f7642d99..2727643a3 100644 --- a/src/transformers/visitors/toOrchestrationVisitor.ts +++ b/src/transformers/visitors/toOrchestrationVisitor.ts @@ -319,53 +319,7 @@ const visitor = { ); } } - } /*else if (!scope.modifiesSecretState()) { - const contractName = `${parent.name}Shield`; - const fnName = path.getUniqueFunctionName(); - node.fileName = fnName; - - // After getting an appropriate Name , we build the node - - const newNode = buildNode('File', { - fileName: fnName, // the name of this function - fileExtension: '.mjs', - nodes: [ - buildNode('Imports'), - buildNode('FunctionDefinition', { name: node.name, contractName }), - ], - }); - - - node._newASTPointer = newNode.nodes[1]; // eslint-disable-line prefer-destructuring - parent._newASTPointer.push(newNode); - for (const file of parent._newASTPointer) { - if (file.nodes?.[0].nodeType === 'IntegrationTestBoilerplate') { - file.nodes[0].functions.push( - buildNode('IntegrationTestFunction', { - name: fnName, - parameters: [], - }), - ); - } - if (file.nodes?.[0].nodeType === 'IntegrationApiServicesBoilerplate') { - file.nodes[0].functions.push( - buildNode('IntegrationApiServiceFunction', { - name: fnName, - parameters: [], - returnParameters:[], - }), - ); - } - if (file.nodes?.[0].nodeType === 'IntegrationApiRoutesBoilerplate') { - file.nodes[0].functions.push( - buildNode('IntegrationApiRoutesFunction', { - name: fnName, - parameters: [], - }), - ); - } - } }*/ - + } else { state.skipSubNodes = true; }