Merge pull request #4568

2509717b simplewallet: fix view key parsing in --generate-from-view-key (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2018-10-15 13:48:21 +02:00
commit 29d7ef0fe0
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD

View File

@ -3032,7 +3032,7 @@ bool simple_wallet::init(const boost::program_options::variables_map& vm)
return false;
}
crypto::secret_key viewkey;
if (viewkey_string.hex_to_pod(unwrap(unwrap(viewkey))))
if (!viewkey_string.hex_to_pod(unwrap(unwrap(viewkey))))
{
fail_msg_writer() << tr("failed to parse view key secret key");
return false;