Merge pull request #1544

db44a909 Fix monero-wallet-cli compile (luigi1111)
This commit is contained in:
Riccardo Spagni 2017-01-10 08:23:31 -05:00
commit 4026e7b7de
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -3541,7 +3541,7 @@ bool simple_wallet::address_book(const std::vector<std::string> &args/* = std::v
cryptonote::account_public_address address;
bool has_payment_id;
crypto::hash8 payment_id8;
if (!get_address_from_str(args[1], address, has_payment_id, payment_id8))
if(!tools::dns_utils::get_account_address_from_str_or_url(address, has_payment_id, payment_id8, m_wallet->testnet(), args[1]))
{
fail_msg_writer() << tr("failed to parse address");
return true;