Merge branch 'master' into master

feature/default_network_editable
Dan Finlay 8 years ago committed by GitHub
commit ec9f73ed91
  1. 6
      CHANGELOG.md
  2. 2
      app/manifest.json
  3. 12
      test/unit/account-link-test.js
  4. 9
      test/unit/explorer-link-test.js
  5. 3
      ui/app/components/notice.js
  6. 2
      ui/lib/account-link.js
  7. 2
      ui/lib/explorer-link.js

@ -2,6 +2,12 @@
## Current Master ## Current Master
## 3.5.1 2017-3-27
- Fix edge case where users were unable to enable the notice button if notices were short enough to not require a scrollbar.
## 3.5.0 2017-3-27
- Add better error messages for when a transaction fails on approval - Add better error messages for when a transaction fails on approval
- Allow sending to ENS names in send form on Ropsten. - Allow sending to ENS names in send form on Ropsten.
- Added an address book functionality that remembers the last 15 unique addresses sent to. - Added an address book functionality that remembers the last 15 unique addresses sent to.

@ -1,7 +1,7 @@
{ {
"name": "MetaMask", "name": "MetaMask",
"short_name": "Metamask", "short_name": "Metamask",
"version": "3.4.0", "version": "3.5.1",
"manifest_version": 2, "manifest_version": 2,
"author": "https://metamask.io", "author": "https://metamask.io",
"description": "Ethereum Browser Extension", "description": "Ethereum Browser Extension",

@ -3,15 +3,15 @@ var linkGen = require('../../ui/lib/account-link')
describe('account-link', function() { describe('account-link', function() {
it('adds morden prefix to morden test network', function() { it('adds ropsten prefix to ropsten test network', function() {
var result = linkGen('account', '2') var result = linkGen('account', '3')
assert.notEqual(result.indexOf('morden'), -1, 'testnet included') assert.notEqual(result.indexOf('ropsten'), -1, 'ropsten included')
assert.notEqual(result.indexOf('account'), -1, 'account included') assert.notEqual(result.indexOf('account'), -1, 'account included')
}) })
it('adds testnet prefix to ropsten test network', function() { it('adds kovan prefix to kovan test network', function() {
var result = linkGen('account', '3') var result = linkGen('account', '42')
assert.notEqual(result.indexOf('testnet'), -1, 'testnet included') assert.notEqual(result.indexOf('kovan'), -1, 'kovan included')
assert.notEqual(result.indexOf('account'), -1, 'account included') assert.notEqual(result.indexOf('account'), -1, 'account included')
}) })

@ -3,9 +3,14 @@ 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 ropsten prefix to ropsten test network', function() {
var result = linkGen('hash', '3') var result = linkGen('hash', '3')
assert.notEqual(result.indexOf('testnet'), -1, 'testnet injected') assert.notEqual(result.indexOf('ropsten'), -1, 'ropsten injected')
})
it('adds kovan prefix to kovan test network', function() {
var result = linkGen('hash', '42')
assert.notEqual(result.indexOf('kovan'), -1, 'kovan injected')
}) })
}) })

@ -92,6 +92,7 @@ Notice.prototype.render = function () {
}, },
}, [ }, [
h(ReactMarkdown, { h(ReactMarkdown, {
className: 'notice-box',
source: body, source: body,
skipHtml: true, skipHtml: true,
}), }),
@ -114,6 +115,8 @@ Notice.prototype.render = function () {
Notice.prototype.componentDidMount = function () { Notice.prototype.componentDidMount = function () {
var node = findDOMNode(this) var node = findDOMNode(this)
linker.setupListener(node) linker.setupListener(node)
if (document.getElementsByClassName('notice-box')[0].clientHeight < 310) { this.setState({disclaimerDisabled: false}) }
} }
Notice.prototype.componentWillUnmount = function () { Notice.prototype.componentWillUnmount = function () {

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

@ -6,7 +6,7 @@ module.exports = function (hash, network) {
prefix = '' prefix = ''
break break
case 3: // ropsten test net case 3: // ropsten test net
prefix = 'testnet.' prefix = 'ropsten.'
break break
case 42: // kovan test net case 42: // kovan test net
prefix = 'kovan.' prefix = 'kovan.'

Loading…
Cancel
Save