diff options
author | Hsuan Lee <hsuan@cobinhood.com> | 2018-11-02 14:51:38 +0800 |
---|---|---|
committer | Hsuan Lee <hsuan@cobinhood.com> | 2018-12-10 18:34:13 +0800 |
commit | 161b38826017d27e4eda93409076beb1568cd22e (patch) | |
tree | 06b559f390b390260d7c1f6beb7bd701d09b8320 /ui | |
parent | ffc2ec969ce6588d0db3585e47fdded602f2c88f (diff) | |
download | dexon-wallet-161b38826017d27e4eda93409076beb1568cd22e.tar.gz dexon-wallet-161b38826017d27e4eda93409076beb1568cd22e.tar.zst dexon-wallet-161b38826017d27e4eda93409076beb1568cd22e.zip |
Update dexscan URL
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/components/token-cell.js | 2 | ||||
-rw-r--r-- | ui/app/components/transaction-list-item-details/transaction-list-item-details.component.js | 3 | ||||
-rw-r--r-- | ui/lib/etherscan-prefix-for-network.js | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/ui/app/components/token-cell.js b/ui/app/components/token-cell.js index 75ba347f..aad9e471 100644 --- a/ui/app/components/token-cell.js +++ b/ui/app/components/token-cell.js @@ -156,7 +156,7 @@ function navigateTo (url) { function etherscanLinkFor (tokenAddress, address, network) { const prefix = prefixForNetwork(network) - return `https://${prefix}etherscan.io/token/${tokenAddress}?a=${address}` + return `https://${prefix}dexscan.org/address/${tokenAddress}?a=${address}` } function tokenFactoryFor (tokenAddress) { diff --git a/ui/app/components/transaction-list-item-details/transaction-list-item-details.component.js b/ui/app/components/transaction-list-item-details/transaction-list-item-details.component.js index c658ecf9..95a86519 100644 --- a/ui/app/components/transaction-list-item-details/transaction-list-item-details.component.js +++ b/ui/app/components/transaction-list-item-details/transaction-list-item-details.component.js @@ -26,8 +26,7 @@ export default class TransactionListItemDetails extends PureComponent { const { hash, metamaskNetworkId } = primaryTransaction const prefix = prefixForNetwork(metamaskNetworkId) - const etherscanUrl = `https://${prefix}etherscan.io/tx/${hash}` - + const etherscanUrl = `https://${prefix}dexscan.org/transaction/${hash}` global.platform.openWindow({ url: etherscanUrl }) } diff --git a/ui/lib/etherscan-prefix-for-network.js b/ui/lib/etherscan-prefix-for-network.js index cfe3b0c5..036166ac 100644 --- a/ui/lib/etherscan-prefix-for-network.js +++ b/ui/lib/etherscan-prefix-for-network.js @@ -18,7 +18,7 @@ module.exports = function (network) { prefix = 'kovan.' break default: - prefix = '' + prefix = 'testnet.' } return prefix } |