diff options
author | Dan Finlay <flyswatter@users.noreply.github.com> | 2017-03-28 02:45:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-28 02:45:05 +0800 |
commit | 4819f3a91d8ebb46faf764168998def9ec06f1f9 (patch) | |
tree | 86ad06f03a3cd914a3c2705a01261a78554fd02d | |
parent | 1c956bdb6209ba436a0de99a0f4440696935bd99 (diff) | |
parent | 918f388463d4afaf6429f6432bdd364b780f8d6c (diff) | |
download | tangerine-wallet-browser-4819f3a91d8ebb46faf764168998def9ec06f1f9.tar tangerine-wallet-browser-4819f3a91d8ebb46faf764168998def9ec06f1f9.tar.gz tangerine-wallet-browser-4819f3a91d8ebb46faf764168998def9ec06f1f9.tar.bz2 tangerine-wallet-browser-4819f3a91d8ebb46faf764168998def9ec06f1f9.tar.lz tangerine-wallet-browser-4819f3a91d8ebb46faf764168998def9ec06f1f9.tar.xz tangerine-wallet-browser-4819f3a91d8ebb46faf764168998def9ec06f1f9.tar.zst tangerine-wallet-browser-4819f3a91d8ebb46faf764168998def9ec06f1f9.zip |
Merge pull request #1265 from MetaMask/ropsten-fix
Block explorer - fix ropsten links
-rw-r--r-- | test/unit/account-link-test.js | 12 | ||||
-rw-r--r-- | test/unit/explorer-link-test.js | 9 | ||||
-rw-r--r-- | ui/lib/account-link.js | 2 | ||||
-rw-r--r-- | ui/lib/explorer-link.js | 2 |
4 files changed, 15 insertions, 10 deletions
diff --git a/test/unit/account-link-test.js b/test/unit/account-link-test.js index 4ea12e002..803a70f37 100644 --- a/test/unit/account-link-test.js +++ b/test/unit/account-link-test.js @@ -3,15 +3,15 @@ var linkGen = require('../../ui/lib/account-link') describe('account-link', function() { - it('adds morden prefix to morden test network', function() { - var result = linkGen('account', '2') - assert.notEqual(result.indexOf('morden'), -1, 'testnet included') + it('adds ropsten prefix to ropsten test network', function() { + var result = linkGen('account', '3') + assert.notEqual(result.indexOf('ropsten'), -1, 'ropsten included') assert.notEqual(result.indexOf('account'), -1, 'account included') }) - it('adds testnet prefix to ropsten test network', function() { - var result = linkGen('account', '3') - assert.notEqual(result.indexOf('testnet'), -1, 'testnet included') + it('adds kovan prefix to kovan test network', function() { + var result = linkGen('account', '42') + assert.notEqual(result.indexOf('kovan'), -1, 'kovan included') assert.notEqual(result.indexOf('account'), -1, 'account included') }) diff --git a/test/unit/explorer-link-test.js b/test/unit/explorer-link-test.js index 8aa58bff9..4f0230c2c 100644 --- a/test/unit/explorer-link-test.js +++ b/test/unit/explorer-link-test.js @@ -3,9 +3,14 @@ var linkGen = require('../../ui/lib/explorer-link') describe('explorer-link', function() { - it('adds testnet prefix to morden test network', function() { + it('adds ropsten prefix to ropsten test network', function() { var result = linkGen('hash', '3') - assert.notEqual(result.indexOf('testnet'), -1, 'testnet injected') + assert.notEqual(result.indexOf('ropsten'), -1, 'ropsten injected') + }) + + it('adds kovan prefix to kovan test network', function() { + var result = linkGen('hash', '42') + assert.notEqual(result.indexOf('kovan'), -1, 'kovan injected') }) }) diff --git a/ui/lib/account-link.js b/ui/lib/account-link.js index 948f32da1..4f27b35c0 100644 --- a/ui/lib/account-link.js +++ b/ui/lib/account-link.js @@ -9,7 +9,7 @@ module.exports = function (address, network) { link = `http://morden.etherscan.io/address/${address}` break case 3: // ropsten test net - link = `http://testnet.etherscan.io/address/${address}` + link = `http://ropsten.etherscan.io/address/${address}` break case 42: // kovan test net link = `http://kovan.etherscan.io/address/${address}` diff --git a/ui/lib/explorer-link.js b/ui/lib/explorer-link.js index 7ae19cca0..ca89f8b25 100644 --- a/ui/lib/explorer-link.js +++ b/ui/lib/explorer-link.js @@ -6,7 +6,7 @@ module.exports = function (hash, network) { prefix = '' break case 3: // ropsten test net - prefix = 'testnet.' + prefix = 'ropsten.' break case 42: // kovan test net prefix = 'kovan.' |