diff --git a/premix/assets/js/index.js b/premix/assets/js/index.js index 3f0051156..b72e53c5f 100644 --- a/premix/assets/js/index.js +++ b/premix/assets/js/index.js @@ -257,12 +257,14 @@ function transactionsRenderer(txId, nimbus, geth) { } function fillEmptyLogs(a, b) { - const emptyLog = {address: '', topics: [], data: ''}; + function emptyLog() { + return {address: '', topics: [], data: ''}; + } if(a.logs.length > b.logs.length) { for(var i in a.logs) { if(b.logs[i] === undefined) { - b.logs[i] = emptyLog; + b.logs[i] = emptyLog(); } } } @@ -275,6 +277,7 @@ function transactionsRenderer(txId, nimbus, geth) { $(`