Skip to content

Commit

Permalink
chore: removed extra code
Browse files Browse the repository at this point in the history
  • Loading branch information
SwatiEY committed Mar 27, 2024
1 parent 3eac860 commit 51d69db
Showing 1 changed file with 1 addition and 47 deletions.
48 changes: 1 addition & 47 deletions src/transformers/visitors/toOrchestrationVisitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 51d69db

Please sign in to comment.