aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/accounts/import/private-key.js
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2017-01-20 02:58:33 +0800
committerGitHub <noreply@github.com>2017-01-20 02:58:33 +0800
commita09332f9379400204cae885345a8fd975e887098 (patch)
tree253ad8b40a129b85e7603d43d9edb5b650dbbeb4 /ui/app/accounts/import/private-key.js
parent29cbfd1ea28e4408dd79cb1b2769b53ba01913c4 (diff)
parentb478ce5b778bd70a3ebfc89f2c680daa25a6f395 (diff)
downloadtangerine-wallet-browser-a09332f9379400204cae885345a8fd975e887098.tar.gz
tangerine-wallet-browser-a09332f9379400204cae885345a8fd975e887098.tar.zst
tangerine-wallet-browser-a09332f9379400204cae885345a8fd975e887098.zip
Merge pull request #1029 from MetaMask/i715-AddJsonImport
Add JSON file account import
Diffstat (limited to 'ui/app/accounts/import/private-key.js')
-rw-r--r--ui/app/accounts/import/private-key.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/app/accounts/import/private-key.js b/ui/app/accounts/import/private-key.js
index 6b988a76b..b139a0374 100644
--- a/ui/app/accounts/import/private-key.js
+++ b/ui/app/accounts/import/private-key.js
@@ -2,7 +2,6 @@ const inherits = require('util').inherits
const Component = require('react').Component
const h = require('react-hyperscript')
const connect = require('react-redux').connect
-const type = 'Simple Key Pair'
const actions = require('../../actions')
module.exports = connect(mapStateToProps)(PrivateKeyImportView)
@@ -64,6 +63,6 @@ PrivateKeyImportView.prototype.createKeyringOnEnter = function (event) {
PrivateKeyImportView.prototype.createNewKeychain = function () {
const input = document.getElementById('private-key-box')
const privateKey = input.value
- this.props.dispatch(actions.addNewKeyring(type, [ privateKey ]))
+ this.props.dispatch(actions.importNewAccount('Private Key', [ privateKey ]))
}