mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
util: make ParseMoney return a std::optional<CAmount>
This commit is contained in:
parent
3308c61091
commit
5ef2738089
9 changed files with 119 additions and 140 deletions
|
|
@ -12,8 +12,7 @@ FUZZ_TARGET(parse_numbers)
|
|||
{
|
||||
const std::string random_string(buffer.begin(), buffer.end());
|
||||
|
||||
CAmount amount;
|
||||
(void)ParseMoney(random_string, amount);
|
||||
(void)ParseMoney(random_string);
|
||||
|
||||
double d;
|
||||
(void)ParseDouble(random_string, &d);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue