From c2653b96e4c74c06c4f971d349f73affec13fc7f Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 23 Apr 2018 12:39:43 +0200 Subject: [PATCH] debug call only if VM --- src/app/execution/txLogger.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/execution/txLogger.js b/src/app/execution/txLogger.js index 5c1c3cf6b0..c5a2349c3e 100644 --- a/src/app/execution/txLogger.js +++ b/src/app/execution/txLogger.js @@ -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]) } }