Merge pull request #113 from ethereum/fixisprecompiled

Perform bounds check in case call fails.
pull/7/head
chriseth 8 years ago committed by GitHub
commit 037d201605
  1. 2
      src/helpers/traceHelper.js

@ -37,7 +37,7 @@ module.exports = {
// if stack empty => this is not a precompiled contract
var step = trace[index]
if (this.isCallInstruction(step)) {
return trace[index + 1].stack.length !== 0
return index + 1 < trace.length && trace[index + 1].stack.length !== 0
} else {
return false
}

Loading…
Cancel
Save