Update ::wire:: to be closer to Monero variant (#70)

This commit is contained in:
Lee *!* Clagett
2023-06-07 09:01:46 -04:00
committed by Lee *!* Clagett
parent 3e0555e07d
commit e1bd9541f1
36 changed files with 992 additions and 587 deletions

View File

@@ -72,7 +72,11 @@ namespace lws
expect<lws::rates> crypto_compare_::operator()(std::string&& body) const
{
return wire::json::from_bytes<lws::rates>(std::move(body));
lws::rates out{};
const std::error_code error = wire::json::from_bytes(std::move(body), out);
if (error)
return error;
return {std::move(out)};
}
} // rpc
} // lws