simplewallet: fix crash in sweep commands when address is omitted

This commit is contained in:
jpk68
2026-08-15 14:31:19 -04:00
parent 3646f648db
commit ddf0786ef7
+7
View File
@@ -6975,6 +6975,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], oa_prompter))
{