aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-10-18 04:27:16 +0800
committerDan Finlay <dan@danfinlay.com>2017-10-18 04:27:16 +0800
commitcafabf914fe813d54b6eed78554b4f81f555f5ca (patch)
tree4a189215649a5b6968e8d8b3a008a367da578286
parent9c45af3e2567e2afab9162f27fd4919cfa0957c5 (diff)
parentd9f5e6beb20c5465b1113c8c03c231eabe3d0427 (diff)
downloadtangerine-wallet-browser-cafabf914fe813d54b6eed78554b4f81f555f5ca.tar
tangerine-wallet-browser-cafabf914fe813d54b6eed78554b4f81f555f5ca.tar.gz
tangerine-wallet-browser-cafabf914fe813d54b6eed78554b4f81f555f5ca.tar.bz2
tangerine-wallet-browser-cafabf914fe813d54b6eed78554b4f81f555f5ca.tar.lz
tangerine-wallet-browser-cafabf914fe813d54b6eed78554b4f81f555f5ca.tar.xz
tangerine-wallet-browser-cafabf914fe813d54b6eed78554b4f81f555f5ca.tar.zst
tangerine-wallet-browser-cafabf914fe813d54b6eed78554b4f81f555f5ca.zip
Merge branch 'master' into i2348-SelectAccountOnNewVault
-rw-r--r--CHANGELOG.md1
-rw-r--r--package.json3
-rw-r--r--test/unit/account-link-test.js16
-rw-r--r--test/unit/explorer-link-test.js14
-rw-r--r--ui/app/components/account-dropdowns.js2
-rw-r--r--ui/app/components/shift-list-item.js2
-rw-r--r--ui/app/components/transaction-list-item.js2
-rw-r--r--ui/lib/account-link.js26
-rw-r--r--ui/lib/explorer-link.js6
9 files changed, 6 insertions, 66 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1c82c59be..b24cc161a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,7 @@
- Fix bug where web3 API was sometimes injected after the page loaded.
- Fix bug where first account was sometimes not selected correctly after creating or restoring a vault.
+- Fix bug where imported accounts could not use new eth_signTypedData method.
## 3.11.0 2017-10-11
diff --git a/package.json b/package.json
index 2b7b2056a..d82766fb5 100644
--- a/package.json
+++ b/package.json
@@ -77,11 +77,12 @@
"eth-query": "^2.1.2",
"eth-rpc-client": "^1.1.3",
"eth-sig-util": "^1.4.0",
- "eth-simple-keyring": "^1.1.1",
+ "eth-simple-keyring": "^1.2.0",
"eth-token-tracker": "^1.1.4",
"ethereumjs-tx": "^1.3.0",
"ethereumjs-util": "github:ethereumjs/ethereumjs-util#ac5d0908536b447083ea422b435da27f26615de9",
"ethereumjs-wallet": "^0.6.0",
+ "etherscan-link": "^1.0.2",
"ethjs-contract": "^0.1.9",
"ethjs-ens": "^2.0.0",
"ethjs-query": "^0.2.9",
diff --git a/test/unit/account-link-test.js b/test/unit/account-link-test.js
deleted file mode 100644
index 47a961d1f..000000000
--- a/test/unit/account-link-test.js
+++ /dev/null
@@ -1,16 +0,0 @@
-var assert = require('assert')
-var linkGen = require('../../ui/lib/account-link')
-
-describe('account-link', function () {
- it('adds ropsten prefix to ropsten test network', function () {
- var result = linkGen('account', '3')
- assert.notEqual(result.indexOf('ropsten'), -1, 'ropsten included')
- assert.notEqual(result.indexOf('account'), -1, 'account included')
- })
-
- it('adds kovan prefix to kovan test network', function () {
- var result = linkGen('account', '42')
- assert.notEqual(result.indexOf('kovan'), -1, 'kovan included')
- assert.notEqual(result.indexOf('account'), -1, 'account included')
- })
-})
diff --git a/test/unit/explorer-link-test.js b/test/unit/explorer-link-test.js
deleted file mode 100644
index a02564509..000000000
--- a/test/unit/explorer-link-test.js
+++ /dev/null
@@ -1,14 +0,0 @@
-var assert = require('assert')
-var linkGen = require('../../ui/lib/explorer-link')
-
-describe('explorer-link', function () {
- it('adds ropsten prefix to ropsten test network', function () {
- var result = linkGen('hash', '3')
- 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')
- })
-})
diff --git a/ui/app/components/account-dropdowns.js b/ui/app/components/account-dropdowns.js
index b087a40d4..1b46e532a 100644
--- a/ui/app/components/account-dropdowns.js
+++ b/ui/app/components/account-dropdowns.js
@@ -2,7 +2,7 @@ const Component = require('react').Component
const PropTypes = require('react').PropTypes
const h = require('react-hyperscript')
const actions = require('../actions')
-const genAccountLink = require('../../lib/account-link.js')
+const genAccountLink = require('etherscan-link').createAccountLink
const connect = require('react-redux').connect
const Dropdown = require('./dropdown').Dropdown
const DropdownMenuItem = require('./dropdown').DropdownMenuItem
diff --git a/ui/app/components/shift-list-item.js b/ui/app/components/shift-list-item.js
index 079f05e31..b555dee84 100644
--- a/ui/app/components/shift-list-item.js
+++ b/ui/app/components/shift-list-item.js
@@ -3,7 +3,7 @@ const Component = require('react').Component
const h = require('react-hyperscript')
const connect = require('react-redux').connect
const vreme = new (require('vreme'))()
-const explorerLink = require('../../lib/explorer-link')
+const explorerLink = require('etherscan-link').createExplorerLink
const actions = require('../actions')
const addressSummary = require('../util').addressSummary
diff --git a/ui/app/components/transaction-list-item.js b/ui/app/components/transaction-list-item.js
index a9961f47c..891d5e227 100644
--- a/ui/app/components/transaction-list-item.js
+++ b/ui/app/components/transaction-list-item.js
@@ -4,7 +4,7 @@ const inherits = require('util').inherits
const EthBalance = require('./eth-balance')
const addressSummary = require('../util').addressSummary
-const explorerLink = require('../../lib/explorer-link')
+const explorerLink = require('etherscan-link').createExplorerLink
const CopyButton = require('./copyButton')
const vreme = new (require('vreme'))()
const Tooltip = require('./tooltip')
diff --git a/ui/lib/account-link.js b/ui/lib/account-link.js
deleted file mode 100644
index 037d990fa..000000000
--- a/ui/lib/account-link.js
+++ /dev/null
@@ -1,26 +0,0 @@
-module.exports = function (address, network) {
- const net = parseInt(network)
- let link
- switch (net) {
- case 1: // main net
- link = `https://etherscan.io/address/${address}`
- break
- case 2: // morden test net
- link = `https://morden.etherscan.io/address/${address}`
- break
- case 3: // ropsten test net
- link = `https://ropsten.etherscan.io/address/${address}`
- break
- case 4: // rinkeby test net
- link = `https://rinkeby.etherscan.io/address/${address}`
- break
- case 42: // kovan test net
- link = `https://kovan.etherscan.io/address/${address}`
- break
- default:
- link = ''
- break
- }
-
- return link
-}
diff --git a/ui/lib/explorer-link.js b/ui/lib/explorer-link.js
deleted file mode 100644
index 3b82ecd5f..000000000
--- a/ui/lib/explorer-link.js
+++ /dev/null
@@ -1,6 +0,0 @@
-const prefixForNetwork = require('./etherscan-prefix-for-network')
-
-module.exports = function (hash, network) {
- const prefix = prefixForNetwork(network)
- return `http://${prefix}etherscan.io/tx/${hash}`
-}