We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 816011f commit 77c30cbCopy full SHA for 77c30cb
js/ethplorer.js
@@ -2069,7 +2069,7 @@ Ethplorer = {
2069
for(var i=1; i<parseInt(parts[1]); i++){
2070
res = '0' + res;
2071
}
2072
- return '0.' + res;
+ num = parseFloat('0.' + res);
2073
2074
2075
if(withDecimals){
service/lib/ethplorer.php
@@ -761,7 +761,7 @@ public function getTransactionDetails($hash){
761
$result['tx']['confirmations'] = $confirmations;
762
} else {
763
// if transaction in pending status
764
- $result['tx']['confirmations'] = 0;
+ $result['tx']['confirmations'] = $result['tx']['blockNumber'] !== null ? 1 : 0;
765
766
767
// Temporary
0 commit comments