Skip to content

Commit f70b9d2

Browse files
committed
Show eth transfers.
1 parent 2cebdb6 commit f70b9d2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

js/ethplorer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Ethplorer = {
5858
}
5959
}
6060
}
61-
Ethplorer.showTx = Ethplorer.Storage.get('showTx', null);
61+
Ethplorer.showTx = Ethplorer.Storage.get('showTx', 'all');
6262
var showTxHash = window.location.hash.substr(1);
6363
if(showTxHash){
6464
aShowTxHash = showTxHash.split('=');
@@ -102,7 +102,7 @@ Ethplorer = {
102102
if(href.indexOf('&hash') == -1){
103103
href += '&hash=' + md5($(this).attr("href") + hashDate);
104104
}
105-
var showTx = Ethplorer.Storage.get('showTx', null);
105+
var showTx = Ethplorer.Storage.get('showTx', 'all');
106106
if(showTx){
107107
href += '&showTx=' + showTx;
108108
}

service/lib/ethplorer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class Ethplorer {
110110
*
111111
* @var string
112112
*/
113-
protected $showTx = self::SHOW_TX_TOKENS;
113+
protected $showTx = self::SHOW_TX_ALL;
114114

115115
/**
116116
* Cache for getTokens
@@ -1249,7 +1249,7 @@ public function getContract($address, $calculateTransactions = TRUE){
12491249
* @param string $address Contract address
12501250
* @return int
12511251
*/
1252-
public function countOperations($address, $useFilter = TRUE, $showTx = self::SHOW_TX_TOKENS){
1252+
public function countOperations($address, $useFilter = TRUE, $showTx = self::SHOW_TX_ALL){
12531253
evxProfiler::checkpoint('countOperations', 'START', 'address=' . $address . ', useFilter = ' . ($useFilter ? 'ON' : 'OFF'));
12541254
$cache = 'countOperations-' . $address . '-' . $showTx;
12551255
$result = $this->oCache->get($cache, false, true, 30);
@@ -1492,7 +1492,7 @@ public function getLastTransfers(array $options = array(), $showEth = FALSE){
14921492
* @param int $limit Maximum number of records
14931493
* @return array
14941494
*/
1495-
public function getAddressOperations($address, $limit = 10, $offset = FALSE, array $aTypes = NULL, $showTx = self::SHOW_TX_TOKENS){
1495+
public function getAddressOperations($address, $limit = 10, $offset = FALSE, array $aTypes = NULL, $showTx = self::SHOW_TX_ALL){
14961496
evxProfiler::checkpoint('getAddressOperations', 'START', 'address=' . $address . ', limit=' . $limit . ', offset=' . (is_array($offset) ? print_r($offset, TRUE) : (int)$offset));
14971497

14981498
$result = array();

0 commit comments

Comments
 (0)