Commit d689ae61 authored by soad003's avatar soad003

StaticAnalysis: another testcase

parent c19b9446
......@@ -474,7 +474,7 @@ test('Integration test selfdestruct.js', function (t) {
'selfdestruct.sol': 3,
'deleteDynamicArray.sol': 0,
'blockLevelCompare.sol': 0,
'intDivisionTruncate.sol': 2
'intDivisionTruncate.sol': 5
}
runModuleOnFiles(module, t, (file, report) => {
......
......@@ -26,4 +26,13 @@ contract CharityCampaign {
selfdestruct(beneficiary);
return true;
}
// FALSE POSITIVE FOR SELFDESTRUCT TERMINAL
function endAmbiguous() public {
if(msg.sender == 0x0) {
selfdestruct(beneficiary);
} else {
selfdestruct(processor);
}
}
}
\ No newline at end of file
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