debug call only if VM

pull/1/head
yann300 7 years ago
parent 1310def835
commit c80b2cb9f6
  1. 6
      src/app/execution/txLogger.js

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

Loading…
Cancel
Save