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
c19b9446
Commit
c19b9446
authored
Aug 08, 2018
by
soad003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
StaticAnalysis: selfdestruct terminal, bugfix return, another testcase
parent
93ba8eb6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
staticAnalysisCommon.js
...zer/src/solidity-analyzer/modules/staticAnalysisCommon.js
+1
-1
staticAnalysisIntegration-test.js
...-analyzer/test/analysis/staticAnalysisIntegration-test.js
+1
-1
intDivisionTruncate.sol
...yzer/test/analysis/test-contracts/intDivisionTruncate.sol
+3
-1
No files found.
remix-analyzer/src/solidity-analyzer/modules/staticAnalysisCommon.js
View file @
c19b9446
...
...
@@ -397,7 +397,7 @@ function isFunctionDefinition (node) {
}
function
isStatement
(
node
)
{
return
nodeType
(
node
,
'Statement$'
)
||
isBlock
(
node
)
return
nodeType
(
node
,
'Statement$'
)
||
isBlock
(
node
)
||
isReturn
(
node
)
}
function
isBlock
(
node
)
{
...
...
remix-analyzer/test/analysis/staticAnalysisIntegration-test.js
View file @
c19b9446
...
...
@@ -474,7 +474,7 @@ test('Integration test selfdestruct.js', function (t) {
'selfdestruct.sol'
:
3
,
'deleteDynamicArray.sol'
:
0
,
'blockLevelCompare.sol'
:
0
,
'intDivisionTruncate.sol'
:
1
'intDivisionTruncate.sol'
:
2
}
runModuleOnFiles
(
module
,
t
,
(
file
,
report
)
=>
{
...
...
remix-analyzer/test/analysis/test-contracts/intDivisionTruncate.sol
View file @
c19b9446
...
...
@@ -21,8 +21,9 @@ contract CharityCampaign {
return fee;
}
function endCampaign() public {
function endCampaign() public
returns (bool)
{
require(msg.sender == processor || msg.sender == beneficiary);
selfdestruct(beneficiary);
return true;
}
}
\ No newline at end of file
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