aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrankie <frankie.diamond@gmail.com>2016-10-05 04:50:16 +0800
committerGitHub <noreply@github.com>2016-10-05 04:50:16 +0800
commit4eafb7da2f2c6efdf5ae1530ff8301f0f7daa604 (patch)
tree01325c84c589ee1038b768d516f25eeb8cbd64ae
parent55364b6ee31bdb91d19a5e69dcf3be9ccf49e94a (diff)
parentcfcae23a7d956cf559e7ed0eda510d90084899e7 (diff)
downloadtangerine-wallet-browser-4eafb7da2f2c6efdf5ae1530ff8301f0f7daa604.tar
tangerine-wallet-browser-4eafb7da2f2c6efdf5ae1530ff8301f0f7daa604.tar.gz
tangerine-wallet-browser-4eafb7da2f2c6efdf5ae1530ff8301f0f7daa604.tar.bz2
tangerine-wallet-browser-4eafb7da2f2c6efdf5ae1530ff8301f0f7daa604.tar.lz
tangerine-wallet-browser-4eafb7da2f2c6efdf5ae1530ff8301f0f7daa604.tar.xz
tangerine-wallet-browser-4eafb7da2f2c6efdf5ae1530ff8301f0f7daa604.tar.zst
tangerine-wallet-browser-4eafb7da2f2c6efdf5ae1530ff8301f0f7daa604.zip
Merge branch 'master' into SmallerCopiedButton
-rw-r--r--CHANGELOG.md1
-rw-r--r--ui/app/components/account-export.js9
2 files changed, 7 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5b384e342..0ab4166cc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,7 @@
- Fix bug where chosen FIAT exchange rate does no persist when switching networks
- Fix additional parameters that made MetaMask sometimes receive errors from Parity.
- Fix bug where invalid transactions would still open the MetaMask popup.
+- Removed hex prefix from private key export, to increase compatibility with Geth, MyEtherWallet, and Jaxx.
## 2.13.1 2016-09-23
diff --git a/ui/app/components/account-export.js b/ui/app/components/account-export.js
index f36b9faeb..6d8b099a5 100644
--- a/ui/app/components/account-export.js
+++ b/ui/app/components/account-export.js
@@ -3,6 +3,7 @@ const h = require('react-hyperscript')
const inherits = require('util').inherits
const copyToClipboard = require('copy-to-clipboard')
const actions = require('../actions')
+const ethUtil = require('ethereumjs-util')
module.exports = ExportAccountView
@@ -61,7 +62,9 @@ ExportAccountView.prototype.render = function () {
if (accountExported) {
return h('div.privateKey', {
-
+ style: {
+ margin: '0 20px',
+ },
}, [
h('label', 'Your private key (click to copy):'),
h('p.error.cursor-pointer', {
@@ -72,9 +75,9 @@ ExportAccountView.prototype.render = function () {
width: '100%',
},
onClick: function (event) {
- copyToClipboard(accountDetail.privateKey)
+ copyToClipboard(ethUtil.stripHexPrefix(accountDetail.privateKey))
},
- }, accountDetail.privateKey),
+ }, ethUtil.stripHexPrefix(accountDetail.privateKey)),
h('button', {
onClick: () => this.props.dispatch(actions.backToAccountDetail(this.props.address)),
}, 'Done'),