From 2ab7f414296807283fe58661d54ce7c5bb1d5249 Mon Sep 17 00:00:00 2001 From: Hunter Long Date: Sat, 12 May 2018 19:05:24 -0700 Subject: [PATCH] exporting keystore wallet --- src/view.js | 4 ++-- views/index.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/view.js b/src/view.js index 1e861a2..b6d206d 100644 --- a/src/view.js +++ b/src/view.js @@ -760,8 +760,8 @@ function UnlockPrivateKey() { function ExportEthereumKeystore() { var password = $("#keystore_pass").val(); - configs.wallet.encrypt(password).then(function(data) { - dialog.showSaveDialog({defaultPath: configs.address.substring(0, 10)+'-keystore.json'},function (fileName) { + dialog.showSaveDialog({defaultPath: configs.address.substring(0, 10)+'-keystore.json'},function (fileName) { + configs.wallet.encrypt(password).then(function(data) { var stream = fs.createWriteStream(fileName); stream.once('open', function(fd) { stream.write(data); diff --git a/views/index.html b/views/index.html index 5c43af0..55f9f0d 100644 --- a/views/index.html +++ b/views/index.html @@ -664,13 +664,13 @@
Export Wallet Data
Export Keystore Wallet
One of the safest ways to store your Ethereum and Tokens. Private keys are not recommended! Use a Keystore file for maximum security. -
+
- +