Skip to content

Commit 77c30cb

Browse files
committed
fixes decimals
1 parent 816011f commit 77c30cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

js/ethplorer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2069,7 +2069,7 @@ Ethplorer = {
20692069
for(var i=1; i<parseInt(parts[1]); i++){
20702070
res = '0' + res;
20712071
}
2072-
return '0.' + res;
2072+
num = parseFloat('0.' + res);
20732073
}
20742074

20752075
if(withDecimals){

service/lib/ethplorer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ public function getTransactionDetails($hash){
761761
$result['tx']['confirmations'] = $confirmations;
762762
} else {
763763
// if transaction in pending status
764-
$result['tx']['confirmations'] = 0;
764+
$result['tx']['confirmations'] = $result['tx']['blockNumber'] !== null ? 1 : 0;
765765
}
766766

767767
// Temporary

0 commit comments

Comments
 (0)