Skip to content

Commit

Permalink
debug call only if VM
Browse files Browse the repository at this point in the history
  • Loading branch information
yann300 committed Apr 23, 2018
1 parent 1310def commit c80b2cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/execution/txLogger.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,10 @@ class TxLogger {

function debug (e, data, self) {
e.stopPropagation()
if (data.tx.envMode === 'vm') {
self.event.trigger('debugRequested', [data.tx.hash])
} else {
if (data.tx.isCall && data.tx.envMode !== 'vm') {
modalDialog.alert('Cannot debug this call. Debugging calls is only possible in JavaScript VM mode.')
} else {
self.event.trigger('debugRequested', [data.tx.hash])
}
}

Expand Down

0 comments on commit c80b2cb

Please sign in to comment.