From f35517e213187baef70acf34e01ce7f89f109a97 Mon Sep 17 00:00:00 2001 From: Svyatoslav Nikolsky Date: Thu, 9 Feb 2017 17:41:58 +0300 Subject: [PATCH] fixed compilation (#4493) --- ethstore/src/bin/ethstore.rs | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/ethstore/src/bin/ethstore.rs b/ethstore/src/bin/ethstore.rs index 5128e9ffb..06a0b40a8 100644 --- a/ethstore/src/bin/ethstore.rs +++ b/ethstore/src/bin/ethstore.rs @@ -22,8 +22,9 @@ use std::{env, process, fs}; use std::io::Read; use docopt::Docopt; use ethstore::ethkey::Address; -use ethstore::dir::{KeyDirectory, ParityDirectory, DiskDirectory, GethDirectory, DirectoryType}; -use ethstore::{EthStore, SecretStore, import_accounts, Error, PresaleWallet}; +use ethstore::dir::{KeyDirectory, ParityDirectory, RootDiskDirectory, GethDirectory, DirectoryType}; +use ethstore::{EthStore, SimpleSecretStore, SecretStore, import_accounts, Error, PresaleWallet, + SecretVaultRef, StoreAccountRef}; pub const USAGE: &'static str = r#" Ethereum key management. @@ -97,7 +98,7 @@ fn key_dir(location: &str) -> Result, Error> { "parity-test" => Box::new(ParityDirectory::create(DirectoryType::Testnet)?), "geth" => Box::new(GethDirectory::create(DirectoryType::Main)?), "geth-test" => Box::new(GethDirectory::create(DirectoryType::Testnet)?), - path => Box::new(DiskDirectory::create(path)?), + path => Box::new(RootDiskDirectory::create(path)?), }; Ok(dir) @@ -130,16 +131,17 @@ fn execute(command: I) -> Result where I: IntoIterator = accounts.into_iter().map(|a| a.address).collect(); Ok(format_accounts(&accounts)) } else if args.cmd_import { let src = key_dir(&args.flag_src)?; @@ -150,23 +152,23 @@ fn execute(command: I) -> Result where I: IntoIterator