Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
d1374ba6
Commit
d1374ba6
authored
Sep 26, 2018
by
soad003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
static analysis: new folder structure
parent
7fc9c2eb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
erc20Decimals.js
...x-analyzer/src/solidity-analyzer/modules/erc20Decimals.js
+2
-0
staticAnalysisIntegration-test.js
...-analyzer/test/analysis/staticAnalysisIntegration-test.js
+1
-1
No files found.
remix-analyzer/src/
analysis
/modules/erc20Decimals.js
→
remix-analyzer/src/
solidity-analyzer
/modules/erc20Decimals.js
View file @
d1374ba6
...
@@ -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
}
}
remix-analyzer/test/analysis/staticAnalysisIntegration-test.js
View file @
d1374ba6
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment