Commit c80b2cb9 authored by yann300's avatar yann300

debug call only if VM

parent 1310def8
......@@ -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])
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment