From 48daaa7a7f37a391523bbd3800f21fa8bc1a037d Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 17 Jul 2017 12:40:57 +0200 Subject: [PATCH 1/2] don't build using minify and exorcist --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8239b19ea8..3fcb874970 100644 --- a/package.json +++ b/package.json @@ -127,7 +127,7 @@ ] }, "scripts": { - "build": "browserify src/index.js -d | npm run minify --silent | npm run sourcemap", + "build": "browserify src/index.js -o build/app.js", "browsertest": "sleep 5 && npm run nightwatch_local", "csslint": "csslint --ignore=order-alphabetical --errors='errors,duplicate-properties,empty-rules' --exclude-list='assets/css/font-awesome.min.css' assets/css/", "downloadsolc": "rimraf soljson.js; wget https://ethereum.github.io/solc-bin/soljson.js", From 5a038f56acd1390f642b6ee873360c55875c9fa5 Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 17 Jul 2017 14:13:15 +0200 Subject: [PATCH 2/2] fix staticanalysis test --- src/app/staticanalysis/modules/staticAnalysisCommon.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/staticanalysis/modules/staticAnalysisCommon.js b/src/app/staticanalysis/modules/staticAnalysisCommon.js index ce9aa9a3a8..5a9d9c0f24 100644 --- a/src/app/staticanalysis/modules/staticAnalysisCommon.js +++ b/src/app/staticanalysis/modules/staticAnalysisCommon.js @@ -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)) }