mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
simplewallet: print error when address is wrong
This commit is contained in:
parent
99ee3fd17e
commit
9459f33178
1 changed files with 6 additions and 0 deletions
|
@ -2175,7 +2175,10 @@ bool simple_wallet::transfer_main(int transfer_type, const std::vector<std::stri
|
|||
bool has_payment_id;
|
||||
crypto::hash8 new_payment_id;
|
||||
if (!cryptonote::get_account_address_from_str_or_url(de.addr, has_payment_id, new_payment_id, m_wallet->testnet(), local_args[i]))
|
||||
{
|
||||
fail_msg_writer() << tr("failed to parse address");
|
||||
return true;
|
||||
}
|
||||
|
||||
if (has_payment_id)
|
||||
{
|
||||
|
@ -2670,7 +2673,10 @@ bool simple_wallet::sweep_all(const std::vector<std::string> &args_)
|
|||
crypto::hash8 new_payment_id;
|
||||
cryptonote::account_public_address address;
|
||||
if (!cryptonote::get_account_address_from_str_or_url(address, has_payment_id, new_payment_id, m_wallet->testnet(), local_args[0]))
|
||||
{
|
||||
fail_msg_writer() << tr("failed to parse address");
|
||||
return true;
|
||||
}
|
||||
|
||||
if (has_payment_id)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue