mirror of
https://github.com/wownero/wownero.git
synced 2026-10-17 07:31:35 +02:00
Merge pull request #11121
ddf0786 simplewallet: fix crash in sweep commands when address is omitted (jpk68)
ACKs: selsta, SNeedlewoods
This commit is contained in:
@@ -6995,6 +6995,13 @@ bool simple_wallet::sweep_main(uint32_t account, uint64_t below, const std::vect
|
||||
local_args.pop_back();
|
||||
}
|
||||
|
||||
if (local_args.empty())
|
||||
{
|
||||
fail_msg_writer() << tr("No address given");
|
||||
print_usage();
|
||||
return true;
|
||||
}
|
||||
|
||||
cryptonote::address_parse_info info;
|
||||
if (!cryptonote::get_account_address_from_str_or_url(info, m_wallet->nettype(), local_args[0], m_wallet->is_dns_enabled(), oa_prompter))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user