simplewallet: fix view key parsing in --generate-from-view-key

release-v0.5.1
moneromooo-monero 6 years ago
parent 77ef8c1839
commit 2509717b11
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

@ -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;

Loading…
Cancel
Save