Static analysis: Update module for loop iteration over dynamic array

pull/7/head
Paulius 7 years ago committed by yann300
parent 023e81b622
commit d8447497cb
  1. 2
      remix-solidity/src/analysis/modules/forLoopIteratesOverDynamicArray.js

@ -10,7 +10,7 @@ function forLoopIteratesOverDynamicArray () {
forLoopIteratesOverDynamicArray.prototype.visit = function (node) {
if (common.isForLoop(node) &&
node.children[1].children[1].attributes.member_name === 'length' &&
node.children[1].children[1].children[0].attributes.type.indexOf('[]') != -1) {
node.children[1].children[1].children[0].attributes.type.indexOf('[]') !== -1) {
this.relevantNodes.push(node)
}
}

Loading…
Cancel
Save