Skip to content

Commit c3ec9c9

Browse files
committed
Few bugfixes
1 parent 1c4de49 commit c3ec9c9

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

js/ethplorer.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,11 @@ Ethplorer = {
120120
oOperation.type = 'Issuance';
121121
}
122122

123-
if('undefined' !== typeof(oOperation.value)){
123+
if('undefined' !== typeof(oOperation.formatted)){
124124
oOperation.value = Ethplorer.Utils.toBig(oOperation.value).div(Math.pow(10, oToken.decimals));
125125
oOperation.value = Ethplorer.Utils.formatNum(oOperation.value, true, oToken.decimals, true);
126126
oOperation.value = oToken.symbol ? (oOperation.value + ' ' + oToken.symbol) : oOperation.value;
127+
oOperation.formatted = true;
127128
}
128129

129130
titleAdd += oOperation.type;
@@ -257,7 +258,7 @@ Ethplorer = {
257258
txData.operation = txData.operations[txData.operations.length - 1];
258259
var multiop = txData.operations.length > 1;
259260
for(var i=0; i<txData.operations.length; i++){
260-
var idx = i; // txData.operations.length - i - 1;
261+
var idx = i;
261262
var op = txData.operations[idx];
262263
var pos = ('undefined' !== typeof(op.priority)) ? op.priority : idx;
263264
op.index = idx;
@@ -315,7 +316,7 @@ Ethplorer = {
315316
}
316317
if(multiop){
317318
$('.multiop table tr').addClass('selectable');
318-
$('.multiop table tr:eq(0)').removeClass('selectable').addClass('blue');
319+
$('.multiop table tr:eq(0)').removeClass('selectable').addClass('blue');
319320
$('.multiop .block-header h3').text(txData.operations.length + ' internal operations found');
320321
$('.multiop').show();
321322
}
@@ -377,6 +378,8 @@ Ethplorer = {
377378
el.removeClass('selectable');
378379
Ethplorer.showOpDetails(txData.tx, el[0].operation);
379380
}
381+
}else if(multiop){
382+
Ethplorer.showOpDetails(oTx, txData.operations[0]);
380383
}
381384

382385
Ethplorer.Utils.hideEmptyFields();

0 commit comments

Comments
 (0)