1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00

Add temporary morden explorer link support

This commit is contained in:
Dan Finlay 2016-11-21 19:43:59 -08:00
parent daec4d5c36
commit 694f34ae9a
2 changed files with 7 additions and 1 deletions

View File

@ -3,6 +3,12 @@ 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 injected')
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 injected')

View File

@ -7,7 +7,7 @@ module.exports = function(address, network) {
link = `http://etherscan.io/address/${address}`
break
case 2: // morden test net
link = ''
link = `http://morden.etherscan.io/address/${address}`
break
case 3: // ropsten test net
link = `http://testnet.etherscan.io/address/${address}`