take into account when scopeId is empty string

pull/10/head
Iuri Matias 5 years ago
parent 39efcc855a
commit 34708aa6ee
  1. 2
      remix-debug/src/solidity-decoder/internalCallTree.js

@ -81,7 +81,7 @@ class InternalCallTree {
*/
findScope (vmtraceIndex) {
let scopeId = this.findScopeId(vmtraceIndex)
if (!scopeId) return null
if (scopeId !== '' && !scopeId) return null
let scope = this.scopes[scopeId]
while (scope.lastStep && scope.lastStep < vmtraceIndex && scope.firstStep > 0) {
scopeId = this.parentScope(scopeId)

Loading…
Cancel
Save