Skip to content

Commit

Permalink
Update packages/core/src/utils/make-namespaced.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Francisco <fg@frang.io>
  • Loading branch information
ericglau and frangio authored Sep 26, 2023
1 parent c521097 commit 14ef3df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/core/src/utils/make-namespaced.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ export function makeNamespacedInput(input: SolcInput, output: SolcOutput): SolcI
}
}
} else if (isNodeType('FunctionDefinition', node) || isNodeType('VariableDeclaration', node)) {
if (node.documentation) {
modifications.push(makeDelete(node.documentation, orig));
}
// Replace with a dummy variable of arbitrary type
const name = node.name;
const insertText = `uint256 constant ${name} = 0;`;
Expand Down

0 comments on commit 14ef3df

Please sign in to comment.