aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-10-05 04:26:51 +0800
committerDan Finlay <dan@danfinlay.com>2016-10-05 04:26:51 +0800
commit769bd8e2eee5f322f5883407e9fd779cf2a59e97 (patch)
tree9ccb7bd0368046f997273d3d4849f282a20027cd /ui
parentca57fc0f52809882a730f8767cbbffb0acfc0b6d (diff)
downloadtangerine-wallet-browser-769bd8e2eee5f322f5883407e9fd779cf2a59e97.tar
tangerine-wallet-browser-769bd8e2eee5f322f5883407e9fd779cf2a59e97.tar.gz
tangerine-wallet-browser-769bd8e2eee5f322f5883407e9fd779cf2a59e97.tar.bz2
tangerine-wallet-browser-769bd8e2eee5f322f5883407e9fd779cf2a59e97.tar.lz
tangerine-wallet-browser-769bd8e2eee5f322f5883407e9fd779cf2a59e97.tar.xz
tangerine-wallet-browser-769bd8e2eee5f322f5883407e9fd779cf2a59e97.tar.zst
tangerine-wallet-browser-769bd8e2eee5f322f5883407e9fd779cf2a59e97.zip
Removed hex prefix from private key export
For compatibility with Jaxx, MEW, and Geth. Fixes #687
Diffstat (limited to 'ui')
-rw-r--r--ui/app/components/account-export.js9
1 files changed, 6 insertions, 3 deletions
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'),