mirror of
https://codeberg.org/wownero/lwsf-wow.git
synced 2026-11-15 09:23:55 +01:00
Fix max outputs in tx construction, and fix static asserts
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user