Merge pull request #943 from MetaMask/fixExplorerLink

Fix explorer link
feature/default_network_editable
Dan Finlay 8 years ago committed by GitHub
commit de22ab2090
  1. 1
      CHANGELOG.md
  2. 2
      test/unit/explorer-link-test.js
  3. 3
      ui/app/components/transaction-list-item.js
  4. 2
      ui/lib/explorer-link.js

@ -2,6 +2,7 @@
## Current Master
- Fixed ropsten transaction links
- Temporarily disable extension reload detection causing infinite reload bug.
## 2.14.0 2016-12-16

@ -4,7 +4,7 @@ var linkGen = require('../../ui/lib/explorer-link')
describe('explorer-link', function() {
it('adds testnet prefix to morden test network', function() {
var result = linkGen('hash', '2')
var result = linkGen('hash', '3')
assert.notEqual(result.indexOf('testnet'), -1, 'testnet injected')
})

@ -27,7 +27,7 @@ TransactionListItem.prototype.render = function () {
let isLinkable = false
const numericNet = parseInt(network)
isLinkable = numericNet === 1 || numericNet === 2
isLinkable = numericNet === 1 || numericNet === 3
var isMsg = ('msgParams' in transaction)
var isTx = ('txParams' in transaction)
@ -41,7 +41,6 @@ TransactionListItem.prototype.render = function () {
}
const isClickable = ('hash' in transaction && isLinkable) || isPending
return (
h(`.transaction-list-item.flex-row.flex-space-between${isClickable ? '.pointer' : ''}`, {
onClick: (event) => {

@ -5,7 +5,7 @@ module.exports = function (hash, network) {
case 1: // main net
prefix = ''
break
case 2: // morden test net
case 3: // morden test net
prefix = 'testnet.'
break
default:

Loading…
Cancel
Save