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:
parent
daec4d5c36
commit
694f34ae9a
@ -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')
|
||||
|
@ -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}`
|
||||
|
Loading…
Reference in New Issue
Block a user