Add temporary morden explorer link support

feature/default_network_editable
Dan Finlay 8 years ago
parent daec4d5c36
commit 694f34ae9a
  1. 6
      test/unit/account-link-test.js
  2. 2
      ui/lib/account-link.js

@ -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…
Cancel
Save