Skip to content

Commit a418c58

Browse files
committed
Transactions count fixed
1 parent 411315d commit a418c58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

service/lib/ethplorer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ public function getContract($address){
369369
$result = $cursor->hasNext() ? $cursor->getNext() : false;
370370
if($result){
371371
unset($result["_id"]);
372-
$result['txsCount'] = $this->dbs['transactions']->count(array("to" => $address));
372+
$result['txsCount'] = $this->dbs['transactions']->count(array("to" => $address)) + 1;
373373
if($this->isChainyAddress($address)){
374374
$result['isChainy'] = true;
375375
}

0 commit comments

Comments
 (0)