Commit d1374ba6 authored by soad003's avatar soad003

static analysis: new folder structure

parent 7fc9c2eb
...@@ -3,6 +3,7 @@ var desc = 'Decimal should be uint8' ...@@ -3,6 +3,7 @@ var desc = 'Decimal should be uint8'
var categories = require('./categories') var categories = require('./categories')
var common = require('./staticAnalysisCommon') var common = require('./staticAnalysisCommon')
var AbstractAst = require('./abstractAstView') var AbstractAst = require('./abstractAstView')
var algo = require('./algorithmCategories')
function erc20Decimals () { function erc20Decimals () {
this.abstractAst = new AbstractAst() this.abstractAst = new AbstractAst()
...@@ -57,5 +58,6 @@ module.exports = { ...@@ -57,5 +58,6 @@ module.exports = {
name: name, name: name,
description: desc, description: desc,
category: categories.ERC, category: categories.ERC,
algorithm: algo.EXACT,
Module: erc20Decimals Module: erc20Decimals
} }
...@@ -639,7 +639,7 @@ test('Integration test intDivisionTruncate.js', function (t) { ...@@ -639,7 +639,7 @@ test('Integration test intDivisionTruncate.js', function (t) {
test('Integration test erc20Decimal.js', function (t) { test('Integration test erc20Decimal.js', function (t) {
t.plan(testFiles.length) t.plan(testFiles.length)
var module = require('../../src/analysis/modules/erc20Decimals') var module = require('../../src/solidity-analyzer/modules/erc20Decimals')
var lengthCheck = { var lengthCheck = {
'KingOfTheEtherThrone.sol': 0, 'KingOfTheEtherThrone.sol': 0,
......
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