diff --git a/src/app/execution/txLogger.js b/src/app/execution/txLogger.js index 5a2faf86117..62724759df2 100644 --- a/src/app/execution/txLogger.js +++ b/src/app/execution/txLogger.js @@ -157,6 +157,7 @@ class TxLogger { }, { activate: true, filterFn: filterTx }) this.logUnknownTX = this._deps.editorPanel.registerCommand('unknownTransaction', (args, cmds, append) => { + // triggered for transaction AND call var data = args[0] var el = renderUnknownTransaction(this, data) append(el) @@ -277,11 +278,11 @@ function renderUnknownTransaction (self, data) { var from = data.tx.from var to = data.tx.to var obj = {from, to} - var txType = 'unknownTx' + var txType = 'unknown' + (data.tx.isCall ? 'Call' : 'Tx') var tx = yo`
txDetails(e, tx, data, obj)}> - ${checkTxStatus(data.receipt, txType)} + ${checkTxStatus(data.tx, txType)} ${context(self, {from, to, data})}
debug(e, data, self)}>Debug
@@ -304,7 +305,7 @@ function checkTxStatus (tx, type) { if (tx.status === '0x1') { return yo`` } - if (type === 'call') { + if (type === 'call' || type === 'unknownCall') { return yo`call` } else { return yo``