Commit 5a038f56 authored by yann300's avatar yann300

fix staticanalysis test

parent 48daaa7a
......@@ -240,6 +240,7 @@ function getDeclaredVariableName (varDeclNode) {
*/
function getStateVariableDeclarationsFormContractNode (contractNode) {
if (!isContractDefinition(contractNode)) throw new Error('staticAnalysisCommon.js: not an contract definition declaration')
if (!contractNode.children) return []
return contractNode.children.filter((el) => isVariableDeclaration(el))
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment