warning:'Use of selfdestruct: can block calling contracts unexpectedly. Be especially careful if this contract is planned to be used by other contracts (i.e. library contracts, interactions). Selfdestruction of the callee contract can leave callers in an inoperable state.',
warning:'Use of selfdestruct: can block calling contracts unexpectedly. Be especially careful if this contract is planned to be used by other contracts (i.e. library contracts, interactions). Selfdestruction of the callee contract can leave callers in an inoperable state.',
location:node.src,
location:node.src,
...
@@ -35,7 +33,7 @@ function report (contracts, multipleContractsWithSameName) {
...
@@ -35,7 +33,7 @@ function report (contracts, multipleContractsWithSameName) {
})
})
hasSelf=true
hasSelf=true
}
}
if(common.isStatement(node)&&hasSelf){
if(isStatement(node)&&hasSelf){
warnings.push({
warnings.push({
warning:'Use of selfdestruct: No code after selfdestruct is executed. Selfdestruct is a terminal.',
warning:'Use of selfdestruct: No code after selfdestruct is executed. Selfdestruct is a terminal.',
location:node.src,
location:node.src,
...
@@ -48,12 +46,5 @@ function report (contracts, multipleContractsWithSameName) {
...
@@ -48,12 +46,5 @@ function report (contracts, multipleContractsWithSameName) {
warning:`${funcName} : Variables have very similar names ${sim.var1} and ${sim.var2}. ${hasModifiersComments}${multipleContractsWithSameNameComments}`,
warning:`${funcName} : Variables have very similar names ${sim.var1} and ${sim.var2}. ${hasModifiersComments}${multipleContractsWithSameNameComments}`,
location:func.src
location:func.src
...
@@ -50,38 +47,31 @@ function report (contracts, multipleContractsWithSameName) {
...
@@ -50,38 +47,31 @@ function report (contracts, multipleContractsWithSameName) {
warning:'Bytes and string length are not the same since strings are assumed to be UTF-8 encoded (according to the ABI defintion) therefore one character is not nessesarily encoded in one byte of data.',
warning:'Bytes and string length are not the same since strings are assumed to be UTF-8 encoded (according to the ABI defintion) therefore one character is not nessesarily encoded in one byte of data.',
...
@@ -23,11 +26,5 @@ stringBytesLength.prototype.report = function (compilationResults) {
...
@@ -23,11 +26,5 @@ stringBytesLength.prototype.report = function (compilationResults) {
warning:'Use of "this" for local functions: Never use this to call functions in the same contract, it only consumes more gas than normal local calls.',
warning:'Use of "this" for local functions: Never use this to call functions in the same contract, it only consumes more gas than normal local calls.',