Skip to content

Commit 5e88f27

Browse files
committed
Success flag bug fixed
1 parent d76cd7a commit 5e88f27

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

service/lib/ethplorer.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,7 @@ public function getTransaction($tx){
263263
$result['gasLimit'] = $result['gas'];
264264
unset($result["gas"]);
265265
$result['gasUsed'] = $receipt ? $receipt['gasUsed'] : 0;
266-
$success = (($result['gasUsed'] < $result['gasLimit']) || ($receipt && !empty($receipt['logs'])));
267-
$result['success'] = isset($result['receipt']) ? ($result['gasUsed'] < $result['gasLimit']) : true;
266+
$result['success'] = (($result['gasUsed'] < $result['gasLimit']) || ($receipt && !empty($receipt['logs'])));
268267
}
269268
// evxProfiler::checkpoint('getTransaction FINISH [hash=' . $tx . ']');
270269
return $result;

0 commit comments

Comments
 (0)