mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
remove network Id 2 from explorer link and Add network Id 3
This commit is contained in:
parent
6ce0bc4b11
commit
4910e2f9bd
@ -4,7 +4,7 @@ var linkGen = require('../../ui/lib/explorer-link')
|
|||||||
describe('explorer-link', function() {
|
describe('explorer-link', function() {
|
||||||
|
|
||||||
it('adds testnet prefix to morden test network', 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')
|
assert.notEqual(result.indexOf('testnet'), -1, 'testnet injected')
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ TransactionListItem.prototype.render = function () {
|
|||||||
|
|
||||||
let isLinkable = false
|
let isLinkable = false
|
||||||
const numericNet = parseInt(network)
|
const numericNet = parseInt(network)
|
||||||
isLinkable = numericNet === 1 || numericNet === 2
|
isLinkable = numericNet === 1 || numericNet === 3
|
||||||
|
|
||||||
var isMsg = ('msgParams' in transaction)
|
var isMsg = ('msgParams' in transaction)
|
||||||
var isTx = ('txParams' in transaction)
|
var isTx = ('txParams' in transaction)
|
||||||
@ -41,7 +41,6 @@ TransactionListItem.prototype.render = function () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const isClickable = ('hash' in transaction && isLinkable) || isPending
|
const isClickable = ('hash' in transaction && isLinkable) || isPending
|
||||||
|
|
||||||
return (
|
return (
|
||||||
h(`.transaction-list-item.flex-row.flex-space-between${isClickable ? '.pointer' : ''}`, {
|
h(`.transaction-list-item.flex-row.flex-space-between${isClickable ? '.pointer' : ''}`, {
|
||||||
onClick: (event) => {
|
onClick: (event) => {
|
||||||
|
@ -5,7 +5,7 @@ module.exports = function (hash, network) {
|
|||||||
case 1: // main net
|
case 1: // main net
|
||||||
prefix = ''
|
prefix = ''
|
||||||
break
|
break
|
||||||
case 2: // morden test net
|
case 3: // morden test net
|
||||||
prefix = 'testnet.'
|
prefix = 'testnet.'
|
||||||
break
|
break
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user