Fix max outputs in tx construction, and fix static asserts

This commit is contained in:
Lee Clagett
2025-05-27 02:28:18 -04:00
parent c1c2c64320
commit ec98d76b69
12 changed files with 350 additions and 217 deletions
+4 -3
View File
@@ -393,11 +393,12 @@ namespace lwsf
return cryptonote::print_money(amount);
}
std::uint64_t amountFromString(const std::string &amount)
std::optional<std::uint64_t> amountFromString(const std::string &amount)
{
std::uint64_t result = 0;
cryptonote::parse_amount(result, amount);
return result;
if (cryptonote::parse_amount(result, amount))
return result;
return std::nullopt;
}
bool addressValid(const std::string &str, Monero::NetworkType nettype)