8000 Csv downloading with eth transfers. · etherscan-io/Ethplorer@f5b4a6b · GitHub
[go: up one dir, main page]

Skip to content

Commit f5b4a6b

Browse files
committed
Csv downloading with eth transfers.
1 parent c4e5910 commit f5b4a6b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

service/lib/ethplorer.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1604,7 +1604,15 @@ public function getAddressOperationsCSV($address, $type = 'transfer'){
16041604
$tokenName = '';
16051605
$tokenSymbol = '';
16061606
$contract = $record['contract'];
1607-
$token = isset($aTokenInfo[$contract]) ? $aTokenInfo[$contract] : $this->getToken($contract, TRUE);
1607+
if(isset($aTokenInfo[$contract])){
1608+
$token = $aTokenInfo[$contract];
1609+
}else{
1610+
if($contract == self::ADDRESS_ETH){
1611+
$token = $this->getEthToken();
1612+
}else{
1613+
$token = $this->getToken($contract, TRUE);
1614+
}
1615+
}
16081616
if($token){
16091617
$tokenName = isset($token['name']) ? $token['name'] : '';
16101618
$tokenSymbol = isset($token['symbol']) ? $token['symbol'] : '';

0 commit comments

Comments
 (0)
0