fixed ethstore sign (#8026)

This commit is contained in:
Marek Kotewicz 2018-03-01 14:20:11 +01:00 committed by 5chdn
parent 217cdf5a3a
commit 4af156053f
No known key found for this signature in database
GPG Key ID: 1A40871B597F5F80

View File

@ -266,7 +266,7 @@ fn execute<S, I>(command: I) -> Result<String, Error> where I: IntoIterator<Item
let password = load_password(&args.arg_password)?;
let account_ref = open_args_vault_account(&store, address, &args)?;
let signature = store.sign(&account_ref, &password, &message)?;
Ok(format!("0x{:?}", signature))
Ok(format!("0x{}", signature))
} else if args.cmd_public {
let address = args.arg_address.parse().map_err(|_| ethstore::Error::InvalidAccount)?;
let password = load_password(&args.arg_password)?;