Skip to content

Commit 86f83ef

Browse files
committed
Confirmations bug fixed
1 parent 9c09f3b commit 86f83ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

service/lib/ethplorer.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,8 @@ public function getTransactionDetails($hash){
226226
}
227227
$this->oCache->save($cache, $result);
228228
}
229-
if(is_array($result) && is_array($tx)){
230-
$result['tx']['confirmations'] = $this->oCache->get('lastBlock') - $tx['blockNumber'] + 1;
229+
if(is_array($result) && is_array($result['tx'])){
230+
$result['tx']['confirmations'] = $this->oCache->get('lastBlock') - $result['tx']['blockNumber'] + 1;
231231
}
232232
return $result;
233233
}

0 commit comments

Comments
 (0)